Class UrlSettingDescriptor
Descriptor for a URL setting. Rendered as a text box; the host may validate via RegexPattern.
Inherited Members
Namespace: Zaya.Primitives
Assembly: Zaya.Primitives.dll
Syntax
public sealed class UrlSettingDescriptor : SettingDescriptor
Constructors
| Edit this page View SourceUrlSettingDescriptor(string, LocalizedString)
Initializes a new instance of the UrlSettingDescriptor class.
Declaration
public UrlSettingDescriptor(string key, LocalizedString displayName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Machine-readable key for this setting. |
| LocalizedString | displayName | Localizable UI label. |
Properties
| Edit this page View SourceDefaultValue
Gets or sets the default URL value.
Declaration
public string? DefaultValue { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
RegexPattern
Gets or sets an optional regex pattern for URL validation.
Declaration
public string? RegexPattern { get; init; }
Property Value
| Type | Description |
|---|---|
| string |