DwsInput
One field component, many jobs: DwsInput is generic over T and understands string, int, float, double and decimal. It brings a floating label, adornments, masks, validation, formatting, suggestions, input history with undo/redo, auto-save and a numeric stepper. Every example below is a field from a realistic form rather than an item on a feature checklist.
API ReferenceFundamentals
Icon in the Label, Custom Placeholder
Placeholder replaces the hint that an empty field shows, and IconLabel adds an icon ahead of the floating label text.
Show Code
Input.razor
<DwsInput Name='InputDemo_IconLabel' T='string' Label='Business e-mail' IconLabel='@Icons.BS.EnvelopeFill'
Placeholder='jane.doe@company.com' @bind-Value='@_workEmail' />Input.razor.cs
private string _workEmail = "";Read-only Field with an Explanation
On this account screen the e-mail address identifies the account, so it is read-only; a tooltip tells the user why.
Show Code
Input.razor
<DwsInput Name='InputDemo_Readonly' T='string' Label='Account e-mail' @bind-Value='@_accountEmail' Readonly='true'
Tooltip='Your account e-mail can only be changed from the security settings.' TooltipPosition='DwsTooltipPosition.Right' />Input.razor.cs
private string _accountEmail = "sliem@deepworks-studios.com";Disabled Field with an Explanation
Only support may change the customer number, so the field is disabled - yet its tooltip still says where the number comes from.
Show Code
Input.razor
<DwsInput Name='InputDemo_Disabled' T='string' Label='Customer number' @bind-Value='@_customerNumber' Disabled='true'
Tooltip='Assigned when the account was created.' />Input.razor.cs
private string _customerNumber = "DWS-2021-008315";Adornments & Appearance
Custom Adornment Content
If an icon will not do, the templates take any markup: LeadingAdornmentTemplate carries a currency picker, TrailingAdornmentTemplate a unit label, and both sit inside the input group.
Show Code
Input.razor
<DwsInput Name='InputDemo_TemplateAdornment' T='decimal?' ValueType='DwsStringType.DECIMAL_NUMBER' Label='Budget' @bind-Value='@_budget'>
<LeadingAdornmentTemplate>
<DwsSelect Name='InputDemo_CurrencySelect' T='string' Label='Currency' Options='@_currencyOptions' @bind-Value='@_selectedCurrency' MinWidth='110' />
</LeadingAdornmentTemplate>
<TrailingAdornmentTemplate>
<span class='input-group-text'>per month</span>
</TrailingAdornmentTemplate>
</DwsInput>
<span>@(_budget?.ToString("0.00") ?? "0.00") @_selectedCurrency per month</span>Input.razor.cs
private readonly IReadOnlyList<DwsSelectOptionData<string>> _currencyOptions =
[
new() { Value = "EUR", Text = "EUR" },
new() { Value = "USD", Text = "USD" },
new() { Value = "GBP", Text = "GBP" },
];
private string _selectedCurrency = "EUR";
private decimal? _budget = 1800m;Width That Fits the Content
With AutoWidth the field is only as wide as its text, which suits an inline edit inside a sentence better than a form row spanning the full width.
Show Code
Input.razor
<span class='d-inline-flex align-items-center flex-wrap gap-2'>
Ship
<DwsInput Name='InputDemo_AutoWidthQty' T='int?' ValueType='DwsStringType.INTEGER_NUMBER' Label='Qty'
@bind-Value='@_inlineQuantity' AutoWidth='true' />
boxes to
<DwsInput Name='InputDemo_AutoWidthCity' T='string' Label='City' @bind-Value='@_inlineCity' AutoWidth='true' />
with the next delivery.
</span>Input.razor.cs
private int? _inlineQuantity = 5;
private string _inlineCity = "Leipzig";Fixed Highlight
A field that deserves a second look can carry a fixed emphasis colour through Highlight.
Show Code
Input.razor
<DwsInput Name='InputDemo_StaticHighlight' T='string' Label='Needs review (static INFO highlight)'
@bind-Value='@_reviewNote' Highlight='DwsHighlightType.INFO' />Input.razor.cs
private string _reviewNote = "Flagged by finance on 3 June.";Formatting & Input Rules
Numeric & Password
Validation
E-mail and Phone Fields
Choosing a ValueType brings in the browser's own keyboard, checks and autofill. This checkout contact block uses an e-mail field validated by the browser's rules plus a tel field.
Show Code
Input.razor
<DwsInput Name='InputDemo_Email' T='string' ValueType='DwsStringType.EMAIL' AutoFill='true'
Label='E-mail address' @bind-Value='@_checkoutEmail' ShowValidationIcon='true' />
<DwsInput Name='InputDemo_Phone' T='string' ValueType='DwsStringType.PHONENUMBER' AdditionalAttributes='@_phoneAttributes' AutoFill='true'
Label='Mobile number' @bind-Value='@_checkoutPhone' ShowValidationIcon='true' />Input.razor.cs
private string _checkoutEmail = "";
private string _checkoutPhone = "";
// type="tel" has no built-in format check; the browser validates this pattern.
private readonly Dictionary<string, object> _phoneAttributes = new()
{
["pattern"] = @"\+?[0-9 \(\)\/\-]{6,20}",
["title"] = "Digits, spaces and + ( ) / - only",
};Naming Fields for Autofill
ValueType covers e-mail, phone and password only, so the name and address lines of a checkout have to declare themselves. AutoCompleteType sets the matching token on each line, and that is what allows the browser to fill the whole block from one saved address.
The three fields advertise given-name, street-address and postal-code; none of those could be derived from ValueType.
Show Code
Input.razor
<DwsInput Name='InputDemo_AutoCompleteGivenName' T='string' Label='First name' IconLabel='@Icons.BS.PersonFill'
@bind-Value='@_checkoutGivenName' AutoFill='true' AutoCompleteType='DwsAutoCompleteType.GivenName' />
<DwsInput Name='InputDemo_AutoCompleteStreet' T='string' Label='Street address' IconLabel='@Icons.BS.GeoAltFill'
@bind-Value='@_checkoutStreet' AutoFill='true' AutoCompleteType='DwsAutoCompleteType.StreetAddress' />
<DwsInput Name='InputDemo_AutoCompletePostcode' T='string' Label='Post code'
@bind-Value='@_checkoutPostcode' AutoFill='true' AutoCompleteType='DwsAutoCompleteType.PostalCode'
AllowedCharactersPattern='^[0-9]{0,5}$' MaxLength='5' />Input.razor.cs
// AutoCompleteType only reaches the rendered autocomplete attribute when AutoFill is set;
// with AutoFill off the component emits no token at all.
private string _checkoutGivenName = "";
private string _checkoutStreet = "";
private string _checkoutPostcode = "";Turning Autofill Off
DisableAutocomplete takes a field out of autofill completely - right for a one-time code that should never be offered again.
Show Code
Input.razor
<DwsInput Name='InputDemo_NoAutocomplete' T='string' Label='One-time code (autofill disabled)'
@bind-Value='@_oneTimeCode' DisableAutocomplete='true' AllowedCharactersPattern='^[0-9]*$' MaxLength='6' />Input.razor.cs
// No additional code-behind is required for this example.Persistence & Clipboard
Suggestions, History & Keyboard
Suggestions from a Fixed List
The country field draws on a fixed list. In Dropdown mode the matches appear as a list to pick from; in Inline mode the first match is completed as ghost text that Right arrow or End accepts - handy when users usually know the answer already.
Show Code
Input.razor
<DwsInput Name='InputDemo_SuggestDropdown' T='string' Label='Country (dropdown)' @bind-Value='@_countryDropdown'
Suggestions='@_countrySuggestions' SuggestionMode='DwsInputSuggestionMode.Dropdown' MaxSuggestions='5' />
<DwsInput Name='InputDemo_SuggestInline' T='string' Label='Country (inline ghost text)' @bind-Value='@_countryInline'
Suggestions='@_countrySuggestions' SuggestionMode='DwsInputSuggestionMode.Inline' />Input.razor.cs
private readonly List<string> _countrySuggestions =
[
"Germany", "Austria", "Switzerland", "France", "Italy", "Spain", "Netherlands", "Belgium", "Denmark", "Sweden"
];Composition & Events
Helper Text and Long Labels
A settings form: the label names the setting, HelperText under the field says the unit, the range and what it does, and the field's aria-describedby points at it, so a screen reader reads it with the label. HelperContent takes markup instead. A label the field is too narrow for ends in an ellipsis; from 16 characters on it carries its full text as title (hover it in the narrow field), and its accessible name is always the full text.
Show Code
Input.razor
<DwsInput Name="InputDemo_HelperBudget" T="int?" ValueType="DwsStringType.INTEGER_NUMBER" Label="Render time budget (s)"
HelperText="Per unknown template. A scan stops rendering after this many seconds; 0 means no limit."
@bind-Value="@_renderBudget"></DwsInput>
<DwsInput Name="InputDemo_HelperRetention" T="int?" ValueType="DwsStringType.INTEGER_NUMBER" Label="Keep scan results (days)"
@bind-Value="@_retentionDays">
<HelperContent>Older results are deleted every night. <strong>Findings marked as kept stay.</strong></HelperContent>
</DwsInput>
@* Too long for the field: cut with an ellipsis, the full text in title and in the accessible name. *@
<DwsInput Name="InputDemo_HelperLongLabel" T="string" Label="Rendering time budget per unknown template (seconds)"
@bind-Value="@_longLabelValue"></DwsInput>Input.razor.cs
private int? _renderBudget = 20;
private int? _retentionDays = 90;
private string _longLabelValue = string.Empty;Interface-Description
| Name | Typ | Parameters | Description |
|---|---|---|---|
| ResetAsync | Task | Clears the value programmatically, as the reset button does. | |
| ValidateNow | bool | Re-runs validation immediately and returns whether the current value is valid. | |
| UndoAsync | Task | Steps one entry back through the undo stack (requires EnableUndoRedo). | |
| RedoAsync | Task | Steps one entry forward through the redo stack (requires EnableUndoRedo). | |
| ReturnCurrentValue | T? | JSInvokable accessor returning the current value to JavaScript. | |
| OnDataMaskCommitted | Task | JSInvokable callback the input mask script uses to push a committed masked value back into Value. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Value | T? | default | The current value of the input, two-way bindable via @bind-Value. |
| ValueExpression | Expression<Func<T?>>? | null | The bound field, set by @bind-Value. Gives the input its name attribute (Model.Email) so a statically rendered form posts it and [SupplyParameterFromForm] binds it. A name in AdditionalAttributes wins. |
| TextExpression | Expression<Func<string>>? | null | The bound field, set by @bind-Text. Without a ValueExpression it gives the input its name attribute, and it is the field an enclosing EditForm validates. |
| Text | string | "" | The raw text the field is holding, two-way bindable via @bind-Text; it is the string Value was parsed from, not what an obfuscated or masked field puts on screen. |
| DebounceMilliseconds | int | 0 | Debounces ValueChanged/OnChangeAfter notifications while typing; 0 notifies on every keystroke. |
| Label | string | "" | The floating label and default placeholder. |
| HelperText | string? | null | A line of help under the field (a unit, a range, what the value does), linked with aria-describedby. Keeps a long explanation out of the floating label. |
| HelperContent | RenderFragment? | null | Help under the field as markup (a link, emphasis); replaces HelperText. A floating label of 16 or more characters carries its full text as title, so a label the field cuts with an ellipsis can still be read; its accessible name is always the full text. |
| IconLabel | string | "" | An icon class shown before the label text (a decorative DwsIcon in the label's colour). |
| Placeholder | string? | null | Overrides the placeholder; falls back to Label. |
| DynamicPlaceholder | Func<T?, string>? | null | Computes the placeholder from the current value. |
| DynamicLabel | Func<T?, string>? | null | Computes the floating label from the current value. |
| Tooltip | string | "" | A static tooltip shown on hover. |
| TooltipPosition | DwsTooltipPosition | Top | Kept so existing markup still compiles: the tooltip is the browser's native title, which has no position. |
| DynamicTooltip | Func<T?, string>? | null | Computes the tooltip from the current value. |
| ValueType | DwsStringType | TEXT | The input's data type (Text/Integer/Decimal/Password/Email/PhoneNumber); can be changed at runtime. |
| Readonly | bool | false | Marks the input read-only. |
| Hidden | bool | false | Sets the HTML hidden attribute on the field; the component stays mounted and stays bound, so the value survives being hidden. |
| AutoFill | bool | false | Enables browser autofill using AutoCompleteType. |
| AutoCompleteType | DwsAutoCompleteType | None | The autocomplete token to advertise; only reaches the rendered attribute when AutoFill is set, and is derived from ValueType when left at None. |
| DisableAutocomplete | bool | false | Forces autocomplete off, for sensitive fields. |
| IsPasswordRevealed | bool | false | Whether a password field starts out showing its text; the eye adornment toggles it from there. |
| Autofocus | bool | false | Focuses the field once it is rendered. |
| FocusDelayMs | int | 0 | Delays the initial Autofocus call, e.g. to let an opening animation finish. |
| FocusSelectBehavior | DwsInputFocusSelectBehavior | None | Selection/caret behaviour applied every time the field receives focus. |
| Lines | int | 1 | Number of rows; values greater than 1 render a textarea. |
| AutoResize | bool | false | Grows a multi-line textarea with its content instead of scrolling. |
| AutoResizeMaxLines | int? | null | Caps AutoResize's height, in lines. |
| Spellcheck | bool? | null | Overrides the browser's spellcheck attribute. |
| MaxLength | string | "" | Maximum input length. |
| Highlight | DwsHighlightType | NONE | Highlight colour (Error/Warning/Info/None). |
| ConditionalHighlight | Func<T?, DwsHighlightType>? | null | Overrides Highlight based on the current value. |
| DataMask | string | "" | A mask pattern (0 = digit, a = letter, * = any character, anything else is fixed) applied to the raw input; wrap in slashes for a regular expression. |
| ReturnRawValue | bool | true | When masked, binds the unmasked characters rather than the formatted text. |
| FocusGlow | bool | true | Shows a themed glow around the input while focused. |
| Dense | bool | false | A compact single-line field without the floating label: one line of text high (44px on a touch screen), the Placeholder shown as an ordinary placeholder. For search and filter boxes inside other components (DwsSelect's search, DwsCheckBoxGroup's search, DwsSlider's number fields). A Label stays in the markup as the field's name, visually hidden; without one, name the field with an aria-label in AdditionalAttributes. |
| PlaceholderAnimation | bool | false | Animates the floating label on focus. |
| AutoWidth | bool | false | Shrinks/grows the input's width to roughly match its text length. |
| AdornmentText | string | "" | Text/icon class for the built-in adornment. |
| AdornmentType | DwsAdornmentType | Text | Text/TextButton/Icon/IconButton. |
| AdornmentPosLeft | bool | false | Places the adornment before the input instead of after. Button adornments and the password toggle work on either side. |
| AdornmentVisible | bool | true | Whether the built-in adornment is rendered. |
| AdornmentDisabled | bool | false | Disables the button adornment types. A disabled input disables its adornment too. |
| AdornmentToolTip | string | "" | Tooltip shown on hover and keyboard focus of the adornment; an icon button also takes it as its accessible name. |
| AdornmentTooltipPosition | DwsTooltipPosition | Top | Where the adornment tooltip is anchored. |
| AdornmentIconSize | DwsSize? | null | Icon size of an Icon/IconButton adornment. Null inherits the input group's font size. |
| AdornmentBadge | string? | null | A counter or short status shown as a badge on the adornment's corner. |
| AdornmentBadgeColor | DwsColor | DwsColor.Error | Background color of the adornment badge. |
| AdornmentAriaLabel | string? | null | Accessible name of a button adornment. Falls back to AdornmentToolTip, then to the text. A password field's reveal toggle defaults to a localized "Show password" / "Hide password" that follows its state. |
| DynamicAdornmentText | Func<T?, string>? | null | Computes the adornment text from the current value. |
| LeadingAdornmentTemplate | RenderFragment? | null | Custom content replacing the leading adornment area. |
| TrailingAdornmentTemplate | RenderFragment? | null | Custom content replacing the trailing adornment area. |
| Format | DwsInputFormatType | None | Text transform: Uppercase/Lowercase/Capitalize/TitleCase and Custom apply while typing; Currency/Percentage apply on blur. |
| CustomFormatter | Func<string, string>? | null | Used when Format is Custom. |
| TrimOnBlur | bool | false | Trims whitespace when the input loses focus. |
| CapitalizeOnBlur | bool | false | Capitalises the first character on blur. The last of the blur transforms (trim, BlurTransform, AutoCorrectMap, capitalise), so a corrected word is capitalised too. |
| BlurTransform | Func<string, string>? | null | Additional transform applied on blur, after trimming and before AutoCorrectMap and CapitalizeOnBlur. |
| ObfuscateValue | bool | false | Shows the real text while focused; masks it (e.g. a PIN) once the field is blurred. |
| ObfuscationChar | char | '*' | Character used to mask hidden characters. |
| ObfuscationVisibleChars | int | 0 | Trailing characters left visible when obfuscated - never more than half of the text, so a short value is not shown entirely (with 4: "1234" shows as "**34"). |
| AllowedCharactersPattern | string? | null | Regex describing allowed characters; other keystrokes are rejected. |
| SanitizeInput | bool | false | Strips HTML tags/control characters as the user types. |
| AutoCorrectMap | IReadOnlyDictionary<string, string>? | null | Whole-word replacements applied on blur. |
| Validate | Func<T?, string?>? | null | Custom validation callback; return null when valid, otherwise the error message. |
| ValidationRules | List<Func<T?, string?>>? | null | Additional rules evaluated in order; the first failure wins. |
| CompareTo | DwsInput<T>? | null | Another DwsInput this one must match (e.g. confirm-password). |
| CompareValidationMessage | string? | null | Message shown when CompareTo does not match. |
| ShowErrorMessage | bool | true | Shows the validation error below the input. |
| ShowValidationIcon | bool | false | Shows an icon reflecting validity, once the field has text in it. |
| ValidIconClass | string | Icons.BS.CheckCircleFill | Icon class used when valid; override it to match the page's own icon set. |
| InvalidIconClass | string | Icons.BS.ExclamationCircleFill | Icon class used when invalid; override it to match the page's own icon set. |
| ValidateOnPaste | bool | false | Re-runs validation immediately after a paste. |
| ReserveErrorSpace | bool? | null | Keeps one message line reserved under the field so an error appearing does not shift the content below. null (default): reserved for a field that has a validator (Validate, ValidationRules, CompareTo, numeric MinValue / MaxValue); true: always; false: never. |
| ShowValidationWhileTyping | bool | false | Shows an error from the first keystroke. By default it is held back until the field is first left, ValidateNow() runs or a validated paste lands, then tracks every keystroke. |
| TrapFocusUntilValid | bool | false | Returns focus to the input on blur while it is invalid. |
| ResetValueOnInvalidBlur | bool | false | Reverts to the last valid value on blur if still invalid. |
| AnnounceValidation | bool | true | Announces validation state via an ARIA live region. |
| EnableInputHistory | bool | false | Enables ArrowUp/ArrowDown navigation through previous values. |
| InputHistorySize | int | 20 | Maximum number of remembered values. |
| KeyboardShortcuts | Dictionary<string, EventCallback>? | null | Custom shortcuts keyed by key combination, e.g. "ctrl+k" or "Ctrl+Shift+S". The spelling is free: case, order of the modifiers, Control / Cmd / Option, Esc, Up, Space. |
| AutoTabOnMaxLength | bool | false | Fires OnAutoTabComplete once MaxLength is reached. |
| Suggestions | IEnumerable<string>? | null | Static suggestion list. |
| SuggestionsProvider | Func<string, Task<IEnumerable<string>>>? | null | Async suggestion data source; takes priority over Suggestions. |
| SuggestionMode | DwsInputSuggestionMode | None | None/Dropdown/Inline presentation. |
| MaxSuggestions | int | 8 | Maximum suggestions shown. |
| EnableUndoRedo | bool | false | Enables Ctrl+Z/Ctrl+Y undo/redo inside the field. |
| UndoRedoHistorySize | int | 50 | Maximum undo steps remembered. |
| AutoSave | DwsInputAutoSaveStorage | None | Persists the text to Local/Session storage as the user types. |
| AutoSaveKey | string? | null | Storage key; required when AutoSave is enabled. |
| AutoSaveDebounceMs | int | 800 | Debounce before persisting. |
| ShowResetButton | bool | false | Shows a button that clears the value: a DwsCloseButton named by the localised "Clear value", with a 44px touch target. |
| ShowCharacterCounter | bool | false | Shows a current/max character counter (requires MaxLength). |
| ShowCopyButton | bool | false | Shows a copy-to-clipboard button: a DwsClipboard, so the write starts inside the tap (Safari / iOS refuse one after the server round trip). Its icon turns into a check mark for two seconds and a live region says "Copied!". |
| ShowStrengthMeter | bool | false | Shows a progress-bar strength meter below the input. |
| StrengthCalculator | Func<string, int>? | null | Custom 0-100 strength scale; defaults to a length + variety heuristic. |
| ShowStepper | bool | false | Renders - / + buttons for numeric types: DwsButtons, 28px with a mouse and 44px on a touch screen, with the Selection haptic. |
| StepValue | double | 1 | Stepper increment. |
| MinValue | double? | null | Stepper lower bound. |
| MaxValue | double? | null | Stepper upper bound. |
| MultiValueMode | bool | false | Renders separated text as tags (T = string), each a small outline DwsChip. |
| MultiValueSeparator | char | ',' | Tag separator character. |
| ValuePreviewTemplate | RenderFragment<T?>? | null | Optional rendered preview of the value (e.g. a colour swatch, formatted currency). |
| DependentFieldsCondition | Func<T?, bool>? | null | Evaluated on change; result is passed to OnDependentFieldsToggle. |
| EncryptForTransport | Func<T?, string>? | null | Caller-supplied hook producing a transport-safe representation of the value. |
| Name | Typ | Description |
|---|---|---|
| ValueChanged | EventCallback<T> | Fired when the value changes (subject to DebounceMilliseconds). |
| TextChanged | EventCallback<string> | Fired when the raw text changes. |
| OnChangeBefore | EventCallback<T> | Fired with the old value just before it changes. |
| OnChangeAfter | EventCallback<T> | Fired with the new value after it changes. |
| OnBlur | EventCallback<T> | Fired when the input loses focus. |
| OnHasFocus | EventCallback<T> | Fired when the input gains focus. |
| OnLostFocus | EventCallback<T> | Fired when the input loses focus (before validation). |
| OnKeyUp | EventCallback<KeyboardEventArgs> | Fired on keyup. |
| OnKeyDown | EventCallback<KeyboardEventArgs> | Fired on keydown. |
| OnPasteEvent | EventCallback<ClipboardEventArgs> | Fired after a paste is processed. |
| OnAdornmentClick | EventCallback | Fired when the built-in adornment is clicked. |
| OnAutoTabComplete | EventCallback | Fired once MaxLength is reached when AutoTabOnMaxLength is set. |
| OnDependentFieldsToggle | EventCallback<bool> | Fired with the DependentFieldsCondition result. |
| CastingToValueFailed | EventCallback | Fired when the raw text could not be cast to T. A number field also shows its own "Please enter a number." message then. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Element | ElementReference | The associated web component. May be null if accessed before the component is rendered. | |
| ComponentGuid | Guid | Unique identifier for the component. | |
| TypeString | string | The name of the component type, obtained from reflection. | |
| Authorized_RegisterEnabled | bool | false | Indicates whether this component is enabled through a permission registry. |
| Authorized_RegisterSelected | bool | false | Indicates whether this component is selected in permission selection mode. |
| GetInitializedState | bool | false | Returns whether the component is initialized. |
| GetRenderModeState | DwsRenderMode | Returns the current render mode. | |
| GetComponentState | DwsComponentStateType | Returns the current component state. | |
| GetIsInteractiveState | bool | false | Returns whether the component is interactive. |
| GetIsPrerenderingState | bool | false | Returns whether the component is prerendering. |
| GetComponentLoadingState | bool | false | Returns whether the component is loading. |
| IsFormBusy | bool | false | Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState). |
| Name | Typ | Parameters | Description |
|---|---|---|---|
| DebugInfo | void | Logs debug information about the component. | |
| UpdateState | void | Updates the component's state and triggers StateHasChanged. | |
| UpdateStateAsync | Task | Asynchronously updates the component's state and triggers StateHasChanged. | |
| Dispose | void | Disposes the component and releases resources. | |
| FocusAsync | ValueTask | bool containedInScrollableList | Sets focus to the component's element. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Name | string | Required unique identifier for the component within its container. | |
| Visible | bool | true | Determines if the component is visible in the UI. |
| Disabled | bool | false | Disables the form control, ensuring it doesn't participate in form submission. |
| ComponentNameSpace | string | The namespace for permission-based access control. | |
| PermissionKey | string? | null | A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins. |
| Class | string | Optional CSS class names. | |
| Style | string | Optional in-line styles. | |
| Tag | object | An optional user-defined object to store any additional data with the component. | |
| BackReference | DwsReference | A reference to the enclosing component. | |
| ID | string | The id of the <input> / <textarea> itself (the label's for points at it). A generated one is used when it is empty. | |
| AdditionalAttributes | Dictionary<string, object> | Further attributes of the <input> / <textarea> (aria-*, data-*, enterkeyhint, inputmode, ...), not of the wrapper. The field keeps a caller's aria-describedby (its own error message id is added to it), aria-invalid, and - while it is no suggestion combobox itself - role, aria-expanded, aria-controls, aria-activedescendant and aria-autocomplete, so a composing component (DwsSelect's search) can make it a combobox. | |
| IgnorePermissionChecks | bool | false | Bypasses all permission checks for this component. |
| IgnorePermissionSelection | bool | false | Ignore permission selection mode for this component. |
| IgnoreFormBusy | bool | false | Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it. |
| Name | Typ | Description |
|---|---|---|
| OnInitializedCallbackStarted | EventCallback | Callback when OnInitialized starts. |
| OnInitializedCallback | EventCallback | Callback during OnInitialized. |
| OnInitializedCallbackCompleted | EventCallback | Callback when OnInitialized completes. |
| OnInitializedAsyncCallbackStarted | EventCallback | Callback when OnInitializedAsync starts. |
| OnInitializedAsyncCallback | EventCallback | Callback during OnInitializedAsync. |
| OnInitializedAsyncCallbackCompleted | EventCallback | Callback when OnInitializedAsync completes. |
| OnIsComponentLoadingChanged | EventCallback<bool> | Callback when IsComponentLoading changes. |
| OnCurrentRenderModeChanged | EventCallback<DwsRenderMode> | Callback when CurrentRenderMode changes. |
| OnComponentStateChanged | EventCallback<DwsComponentStateType> | Callback when ComponentState changes. |
