Inputs API
Complete API reference for @oge-ui/inputs. The three editors share one field chrome and one base class — shared members are listed once per editor as "Common" groups, editor-specific members first. Live examples are on the demo pages.
Properties Methods Events Types
OgeTextBox
oge-text-boxProperties 50
OgeTextBox
| Name | Type | Default | Description |
|---|---|---|---|
value | model<string> | '' | Editor value — two-way. |
mode | OgeTextBoxMode | 'text' | Native input type. password auto-enables the reveal toggle. |
maxLength | number | undefined | — | Counter denominator; enforced natively while counterMode is 'limit'. |
minLength | number | undefined | — | Native minlength attribute. |
showCounter | boolean | false | Renders the grapheme-accurate character counter in the subscript end slot. |
counterMode | OgeInputCounterMode | 'limit' | Enforce maxLength natively, or allow typing past it and color the counter. |
revealable | boolean | true | Password reveal toggle; on by default for mode="password". Preserves caret/selection when toggling. |
showCopyButton | boolean | false | Copy-to-clipboard rail button (API keys, tokens…); copies the live text. |
autocomplete | string | undefined | — | Native autocomplete attribute. |
inputMode | string | undefined | — | Native inputmode attribute. |
enterKeyHint | string | undefined | — | Native enterkeyhint attribute. |
autocapitalize | string | undefined | — | Native autocapitalize attribute. |
spellcheck | boolean | undefined | — | undefined omits the attribute (browser default). |
Mask
| Name | Type | Default | Description |
|---|---|---|---|
mask | string | undefined | — | Input mask — 0 digit, 9 optional digit, # digit/space/sign, L/l letter (required/optional, any script), A/a letter or digit, C/c any character, a backslash escapes a literal; every other character is a literal. Typing overwrites slot by slot and skips literals, Backspace/Delete empty a slot without shifting the rest, paste accepts raw or formatted text, IME composition is applied at compositionend. undefined = a plain text box. |
maskRules | OgeMaskRules | — | Extra or overriding single-character rules — a one-character RegExp, a string of allowed characters or a predicate; custom slots are always required. |
maskChar | string | '_' | Placeholder character of empty mask slots. |
showMaskMode | OgeMaskShowMode | 'always' | 'always' shows the empty mask while blurred too (not under a floating label); 'onFocus' only while focused or filled, so the placeholder shows. |
includeLiterals | boolean | false | Commit the formatted text with literals ((555) 123-4567) instead of the raw characters — DevExtreme useMaskedValue. |
maskInvalidMessage | string | undefined | — | Error shown while required slots are empty (after blur, per errorDisplay); falls back to messages.maskInvalidError. A reactive control also gets a { mask } validator attached. |
maskValidation | boolean | true | The built-in “required slots are filled” check (Kendo maskValidation): the field error and the reactive-forms { mask } validator. false leaves completeness to your own validators. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 5
Mask
| Name | Type | Description |
|---|---|---|
isMaskComplete(): boolean | boolean | true unless a mask is set and a required slot of the entered value is empty (an empty field counts as complete — leave that to required). |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 9
Mask
| Name | Type | Description |
|---|---|---|
maskCompleted | OgeMaskCompletedEvent | The last required mask slot was filled — { value, rawValue, maskedValue }. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
OgeMaskedTextBox
oge-masked-text-boxProperties 45
OgeMaskedTextBox
| Name | Type | Default | Description |
|---|---|---|---|
value | model<string> | '' | Editor value — two-way. The raw characters, or the formatted text with includeLiterals. |
mask | string (required) | — | Input mask — 0 digit, 9 optional digit, # digit/space/sign, L/l letter (required/optional, any script), A/a letter or digit, C/c any character, a backslash escapes a literal; every other character is a literal. Typing overwrites slot by slot and skips literals, Backspace/Delete empty a slot without shifting the rest, paste accepts raw or formatted text, IME composition is applied at compositionend. |
maskRules | OgeMaskRules | — | Extra or overriding single-character rules — a one-character RegExp, a string of allowed characters or a predicate; custom slots are always required. |
maskChar | string | '_' | Placeholder character of empty mask slots. |
showMaskMode | OgeMaskShowMode | 'always' | 'always' shows the empty mask while blurred too (not under a floating label); 'onFocus' only while focused or filled, so the placeholder shows. |
includeLiterals | boolean | false | Commit the formatted text with literals ((555) 123-4567) instead of the raw characters — DevExtreme useMaskedValue. |
maskInvalidMessage | string | undefined | — | Error shown while required slots are empty (after blur, per errorDisplay); falls back to messages.maskInvalidError. A reactive control also gets a { mask } validator attached. |
maskValidation | boolean | true | The built-in “required slots are filled” check (Kendo maskValidation): the field error and the reactive-forms { mask } validator. false leaves completeness to your own validators. |
spellcheck | boolean | undefined | false | Off by default — masked values are codes, not words. |
autocomplete | string | undefined | 'off' | Off by default; set e.g. 'tel-national' to let the browser offer phone numbers. |
inputMode | string | undefined | — | Native inputmode; unset, a digit-only mask implies 'numeric'. |
mode | OgeTextBoxMode | 'text' | Native input type (as on the text box). |
showCopyButton | boolean | false | Copy-to-clipboard rail button; copies the value. |
enterKeyHint | string | undefined | — | Native enterkeyhint attribute. |
autocapitalize | string | undefined | — | Native autocapitalize attribute. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 7
OgeMaskedTextBox
| Name | Type | Description |
|---|---|---|
rawValue(): string | string | The entered characters without literals, whatever includeLiterals says. |
maskedValue(): string | string | The formatted text with literals ('' while empty), whatever includeLiterals says. |
isMaskComplete(): boolean | boolean | true unless a mask is set and a required slot of the entered value is empty (an empty field counts as complete — leave that to required). |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 9
Mask
| Name | Type | Description |
|---|---|---|
maskCompleted | OgeMaskCompletedEvent | The last required mask slot was filled — { value, rawValue, maskedValue }. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
OgeTextArea
oge-text-areaProperties 41
OgeTextArea
| Name | Type | Default | Description |
|---|---|---|---|
value | model<string> | '' | Editor value — two-way. |
rows | number | 3 | Visible rows when autoResize is off; the floor when it is on. |
autoResize | boolean | false | Grow/shrink with content between minRows and maxRows. |
minRows | number | undefined | — | Defaults to rows. |
maxRows | number | undefined | — | undefined = unbounded growth. |
maxLength | number | undefined | — | Counter denominator / native cap. |
minLength | number | undefined | — | Native minlength attribute. |
showCounter | boolean | false | Grapheme-accurate character counter. |
counterMode | OgeInputCounterMode | 'limit' | Enforce maxLength natively, or soft-cap. |
spellcheck | boolean | true | Non-optional here, unlike the text box. |
autocapitalize | string | undefined | — | Native autocapitalize attribute. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 8
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
OgeNumberBox
oge-number-boxProperties 41
OgeNumberBox
| Name | Type | Default | Description |
|---|---|---|---|
value | model<number | null> | null | null is the empty state — never 0. |
min | number | undefined | — | Lower bound — values clamp on commit (typing is never blocked). |
max | number | undefined | — | Upper bound — clamped on commit. |
step | number | 1 | Spin/arrow-key increment. Spinning commits immediately. |
showSpinButtons | boolean | false | Up/down spin buttons with hold-to-repeat. |
format | Intl.NumberFormatOptions | undefined | — | Blur-time display format: applied while unfocused (and after the blur clamp); focus swaps in the editable number, so typing never fights a currency sign or a rounding. style: 'percent' formats display only — the model value is not rescaled. |
formatWhileTyping | boolean | false | Groups thousands live while focused (the locale’s separators — Indian 2-digit groups included), keeping the caret beside the digit just typed. The committed value is the same number either way. |
maxFractionDigits | number | undefined | — | Caps the fraction digits while typing — extra digits are not accepted (0 refuses the decimal separator). undefined = unlimited. |
wheelStep | number | undefined | — | Opt-in mouse-wheel stepping by this amount, only while the field is focused (wheel up adds; clamped to min/max). Unset or 0 leaves the wheel to the page. |
locale | string | undefined | — | Overrides the application locale (LOCALE_ID). |
mode | OgeNumberBoxMode | 'text' | Native type attribute; inputmode is always decimal. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 8
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
OgeSelectBox
oge-select-boxProperties 63
OgeSelectBox
| Name | Type | Default | Description |
|---|---|---|---|
value | model<unknown> | null | Committed value (the valueExpr of the selected item); two-way. |
items | readonly TItem[] | OgeSelectBoxItemsFn | [] | The selectable items: an array, or a function invoked lazily on first open (sync or promise; loading/error rows render while pending). The selected item is resolved from this full set, never the filtered one. |
displayExpr | string | ((item) => string) | — | Item → display text. Omitted, the item itself is stringified. |
valueExpr | string | ((item) => unknown) | — | Item → committed value. Omitted, the whole item is the value. |
disabledExpr | string | ((item) => boolean) | — | Marks individual items as non-selectable. |
searchEnabled | boolean | false | Enables typing into the field to filter the list. |
searchMode | 'contains' | 'startswith' | 'contains' | How typed search text matches an item. |
searchExpr | string | string[] | ((item) => string) | — | Which text the filter matches; defaults to the display text. |
minSearchLength | number | 0 | Characters required before the filter narrows the list. |
showDataBeforeSearch | boolean | false | Below minSearchLength: show the full list (true) or nothing (false). |
searchTimeout | number | undefined | — | Debounce before typed text filters the list; undefined = config default (250ms). The displayed text is never debounced. |
acceptCustomValue | boolean | false | Lets typed text that matches no item become the value (committed on Enter/blur) — see customItemCreating. |
groupBy | string | ((item) => string) | — | Groups flat items under headers; items are re-ordered by first-seen group. |
imageExpr | string | ((item) => string) | — | Item → image URL rendered before the option text (avatars, flags…). For inline SVG icons use itemTemplate. |
showDropDownButton | boolean | true | Renders the chevron toggle in the field rail. |
openOnFieldClick | boolean | true | Clicking the field opens the popup (select-only mode toggles it). |
loading | boolean | false | Shows a loading row instead of items — server-side filtering escape hatch. |
dropdownPlacement | OgePopupPlacement | 'bottom-start' | Preferred popup side/alignment (flips when cramped). |
dropdownWidth | number | 'anchor' | 'anchor' | Popup width: fixed pixels or 'anchor' to match the field box. |
dropdownMaxHeight | number | undefined | — | Scrollable list height cap; undefined = the CSS default (320px). |
adaptiveMode / adaptiveBreakpoint | 'auto' | 'none' / number | config: 'none' / 600 | 'auto' presents the popup as a full-width bottom sheet (with a search field at the top when searchEnabled) on viewports narrower than adaptiveBreakpoint px — a titled role="dialog" surface with a close button, scroll lock, inert background, a Tab trap, focus restore, safe-area insets and 16px / 44px touch sizing; Escape, a backdrop tap or a swipe down the handle dismiss it. 'none' keeps the anchored drop-down. App-wide defaults come from provideOgeInputsConfig(). |
wrapItemText | boolean | false | Wraps long option text instead of ellipsizing it. |
useItemTextAsTitle | boolean | false | Mirrors each option's display text into its title attribute. |
itemTemplate | TemplateRef<OgeSelectItemTemplateContext> | — | Custom option row rendering; context: $implicit, index, selected, active. |
virtualScroll | boolean | OgeVirtualScrollOptions | false | Windowed rendering for large lists ({ itemHeight, overscan }). Rows get a fixed size-matched height; groupBy and wrapItemText are ignored while active. |
dataSource | OgeListDataSource<TItem> | undefined | — | Remote, paged data: any @oge-ui/core DataSource (CustomDataSource, ArrayDataSource, CursorDataSource, ODataDataSource) or an object with the same load(), plus an optional byKey(). Replaces items while set: pages of pageSize rows load as the list scrolls (virtual window or scroll position, and the keyboard reaching the end), the typed text is sent as searchText (debounced by searchTimeout, gated by minSearchLength), superseded requests are aborted through the AbortSignal, each search's pages are cached, and a committed value no loaded page holds resolves through byKey. Without totalCount the list keeps paging until a short page arrives. |
pageSize | number | undefined | config: 30 | Rows requested per dataSource page (take); undefined = provideOgeInputsConfig({ dataPageSize }). |
groupTemplate | TemplateRef<OgeSelectGroupTemplateContext> | — | Custom group header rendering for groupBy lists; context: $implicit / label. |
fieldTemplate | TemplateRef<OgeSelectFieldTemplateContext> | — | Custom rendering of the closed field's value (an icon, a swatch, a two-line label); context: $implicit (the selected item or null) and text. The real input stays underneath for focus, typing and assistive technology; the template hides while the user types. |
headerTemplate / footerTemplate | TemplateRef<OgeSelectPopupTemplateContext> | — | Content above / below the popup list (hints, a result count, a "create new" action); context: $implicit (visible items), searchText, loading. |
opened | model<boolean> | false | Popup visibility — two-way. |
selectedItem | Signal<TItem | null> | — | Read-only: the item whose valueExpr matches value. |
displayText | Signal<string> | — | Read-only: display text of the selected item. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 8
OgeSelectBox methods
| Name | Type | Description |
|---|---|---|
open() | void | Opens the popup (no-op while disabled/readonly, or when an opening handler cancels). |
close(reason?) | boolean | Closes the popup unless a closing handler cancels; returns whether it closed. |
toggle() | void | Toggles the popup. |
reload() | void | Drops every cached dataSource page and re-requests the current search. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 16
OgeSelectBox events
| Name | Type | Description |
|---|---|---|
selectionChanged | OgeSelectBoxSelectionChangedEvent | The resolved selected item changed (user or programmatic) — { item, previousItem }. |
itemClick | OgeSelectBoxItemClickEvent | An option row was activated — { item, index, event }; index is within the visible (filtered) list. |
dropDownOpened / dropDownClosed | void | Popup visibility changes, from any trigger. |
searchChanged | OgeSelectBoxSearchChangedEvent | Raw search text on every keystroke — drive server-side filtering from here. |
customItemCreating | OgeSelectBoxCustomItemEvent | Mutable payload (as in the references): assign customItem — an item, a promise of one, or null to reject the text. Left unset, the raw text becomes the item. |
opening | OgeDropDownOpeningEvent | Cancelable pre-open event — set event.cancel = true to keep the popup closed. |
closing | OgeDropDownClosingEvent | Cancelable pre-close event with its reason ('select', 'escape', 'outside', 'tab', 'blur', 'api') — set cancel to keep the popup open. |
pageLoaded | OgeListPageLoadedEvent | A dataSource page landed — { searchText, skip, items, totalCount }. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 7
Select box types
| Name | Type | Description |
|---|---|---|
OgeSelectBoxDisplayExpr / ValueExpr / DisabledExpr | string | fn | Field-name string or function expressions for display text, committed value and per-item disabling. |
OgeSelectBoxSearchMode | 'contains' | 'startswith' | Filter match mode. |
OgeSelectItemTemplateContext | interface | { $implicit: TItem; index: number; selected: boolean; active: boolean }. |
OgeSelectGroupTemplateContext / OgeSelectFieldTemplateContext / OgeSelectPopupTemplateContext | interface | Contexts of groupTemplate ({ $implicit: label, label }), fieldTemplate ({ $implicit: item | null, text }) and headerTemplate / footerTemplate ({ $implicit: items, searchText, loading }). |
OgeListDataSource | interface | { load(options: LoadOptions): Promise<LoadResult>; byKey?(key) } — structurally a subset of the grid's DataSource, so every core data source fits as is. |
OgeDropDownOpeningEvent / OgeDropDownClosingEvent | interface | { cancel: boolean } / { reason: OgeDropDownCloseReason; cancel: boolean }. |
OgeListPageLoadedEvent | interface | { searchText: string; skip: number; items: readonly TItem[]; totalCount?: number }. |
OgeTreeSelect
oge-tree-selectProperties 21
Value & data
| Name | Type | Default | Description |
|---|---|---|---|
value | RowKey | readonly RowKey[] | null | null | Committed value — two-way. The selected node's key in single mode, an array of keys in multiple. |
items | readonly TItem[] | undefined | — | Nodes to display — a flat parent-referencing list or nested children. |
keyExpr / parentIdExpr / itemsExpr | string | ((row: TItem) => …) | — | Identity and structure accessors, forwarded to the popup tree. itemsExpr switches to hierarchical data. |
displayExpr | string | ((row: TItem) => unknown) | 'text' | Node label, used both in the tree and for the text shown in the closed field. |
disabledExpr / hasItemsExpr / iconExpr / rootValue / dataStructure | see OgeTreeView | — | Forwarded verbatim to the popup tree. |
Selection
| Name | Type | Default | Description |
|---|---|---|---|
selectionMode | 'single' | 'multiple' | 'single' | multiple makes value an array and keeps the popup open while picking. |
showCheckBoxes | 'none' | 'normal' | 'selectAll' | 'none' | Checkbox column inside the popup. |
selectNodesRecursive | boolean | true | Cascades selection down to descendants and up to fully-selected parents. |
selectedKeysMode | 'all' | 'leavesOnly' | 'excludeRecursive' | 'all' | Projection applied to the committed keys — leavesOnly is usually what you want to store from a cascade. |
displayMode | 'text' | 'count' | 'text' | Closed-field rendering for a multiple selection: the joined labels, or just how many are picked. The count is messages.selectedCount (“2 selected”), localized and ICU-plural capable. |
showSelectionAs | 'text' | 'chips' | 'text' | 'chips' renders the selected nodes as removable chips inside the field (each ✕ is labelled removeTagButton + the node text; Backspace removes the last one); 'text' keeps the comma list / displayMode. |
maxDisplayedTags | number | undefined | — | In chips mode, caps the rendered chips; the rest fold into a +N more chip. |
Popup
| Name | Type | Default | Description |
|---|---|---|---|
opened | boolean | false | Whether the popup is open — two-way. |
expandedKeys | readonly RowKey[] | [] | Expanded nodes — two-way, so the shape survives close and reopen. |
expandEvent | 'click' | 'dblclick' | 'dblclick' | Which gesture expands inside the popup. Unlike the bare tree this defaults to dblclick — in a picker a single click should choose, and the chevron expands either way. |
searchEnabled / searchMode / filterMode | see OgeTreeView | — | Puts the tree's own search box inside the popup. |
loadChildren | (parent: TItem, key: RowKey) => Promise<readonly TItem[]> | — | Lazy children, fetched on first expand. |
virtualScroll | boolean | { itemHeight: number } | false | Windowed rendering inside the popup for very large trees. |
dropdownPlacement / dropdownWidth / dropdownMaxHeight | OgePopupPlacement | number | 'anchor' | — | Popup geometry. Width defaults to 'anchor' (matches the field), max height to 320px. |
adaptiveMode / adaptiveBreakpoint | 'auto' | 'none' / number | config: 'none' / 600 | 'auto' presents the popup as a full-width bottom sheet (a Done action in 'multiple' mode) on viewports narrower than adaptiveBreakpoint px — a titled role="dialog" surface with a close button, scroll lock, inert background, a Tab trap, focus restore, safe-area insets and 16px / 44px touch sizing; Escape, a backdrop tap or a swipe down the handle dismiss it. 'none' keeps the anchored drop-down. App-wide defaults come from provideOgeInputsConfig(). |
openOnFieldClick | boolean | true | Opens on a click anywhere in the field, not only on the chevron. |
Methods 2
| Name | Type | Description |
|---|---|---|
open() / close() / toggle() | () => void | Imperative popup control. |
focus() / blur() / reset() / clear() | () => void | Inherited field-chrome control methods. `clear()` empties the value, commits immediately and keeps focus in the field. |
Events 3
| Name | Type | Description |
|---|---|---|
selectionChanged | OgeTreeSelectSelectionChangedEvent | Emitted after the committed selection changed, with keys and previousKeys (always arrays, even in single mode). |
dropDownOpened / dropDownClosed | void | Popup lifecycle. |
valueCommitted | OgeInputValueCommittedEvent | Inherited commit event carrying the previous value. |
Types 4
| Name | Type | Description |
|---|---|---|
OgeTreeSelectSelectionMode | 'single' | 'multiple' | How many nodes may be committed. |
OgeTreeSelectDisplayMode | 'text' | 'count' | Closed-field rendering of a multiple selection. |
OgeTreeSelectShowSelectionAs | 'text' | 'chips' | Text or removable chips in the closed field. |
OgeTreeSelectSelectionChangedEvent | { keys, previousKeys } | Payload of selectionChanged. |
OgeTagBox
oge-tag-boxProperties 53
OgeTagBox
| Name | Type | Default | Description |
|---|---|---|---|
value | model<readonly unknown[]> | [] | Committed values — the valueExpr of every selected item; two-way. |
items / displayExpr / valueExpr / disabledExpr / imageExpr | shared with OgeSelectBox | — | The tag box reuses the select box expression vocabulary verbatim — items may be a lazy function (loading / error rows render while pending). |
searchEnabled / searchMode / searchExpr | shared with OgeSelectBox | — | Client-side filtering of the option list. |
searchTimeout | number | undefined | — | Debounce before typed text filters. undefined filters local items immediately and debounces dataSource requests by the config default (250ms). |
minSearchLength / showDataBeforeSearch | number / boolean | 0 / false | Characters required before the filter narrows the list, and what shows below that. |
groupBy | string | ((item) => string) | — | Groups flat items under headers (ignored while virtualScroll is on). |
itemTemplate | TemplateRef<OgeSelectItemTemplateContext> | — | Custom option content; the checkbox stays in front of it. |
groupTemplate | TemplateRef<OgeSelectGroupTemplateContext> | — | Custom group header rendering. |
tagTemplate | TemplateRef<OgeTagBoxTagTemplateContext> | — | Custom chip content; context $implicit (item), index, text. The remove button stays. |
acceptCustomValue | boolean | false | Enter on typed text that matches no item creates a new tag — see customItemCreating. An exact display match toggles the existing item instead. |
showSelectAll | boolean | false | A tri-state "select all" row above the options (aria-checked true / false / mixed; ArrowUp from the first option reaches it). It acts on the visible, enabled items — the current filter or the loaded pages — honours maxSelectedItems and keeps values selected under other searches. Text: messages.selectAllText. |
maxSelectedItems | number | undefined | — | Caps the selection. At the cap unselected options turn inert and the popup shows messages.maxSelectedItemsMessage in a status line. |
loading | boolean | false | Shows a loading row instead of items. |
dataSource | OgeListDataSource<TItem> | undefined | — | Remote, paged data: any @oge-ui/core DataSource (CustomDataSource, ArrayDataSource, CursorDataSource, ODataDataSource) or an object with the same load(), plus an optional byKey(). Replaces items while set: pages of pageSize rows load as the list scrolls (virtual window or scroll position, and the keyboard reaching the end), the typed text is sent as searchText (debounced by searchTimeout, gated by minSearchLength), superseded requests are aborted through the AbortSignal, each search's pages are cached, and a committed value no loaded page holds resolves through byKey. Without totalCount the list keeps paging until a short page arrives. |
pageSize | number | undefined | config: 30 | Rows requested per dataSource page (take); undefined = provideOgeInputsConfig({ dataPageSize }). |
showSelectionControls | boolean | true | Renders checkboxes in front of the options. |
hideSelectedItems | boolean | false | Hides already-selected items from the popup list. |
maxDisplayedTags | number | undefined | — | Caps the rendered chips; the rest collapse into a +N more chip (messages.moreTags). |
displayMode | 'chips' | 'text' | 'count' | 'chips' | Closed-field rendering of the selection: 'chips', 'text' (one comma-separated line, cut with an ellipsis; the full list is the title) or 'count' (chips up to countThreshold, then messages.selectedCount, e.g. “3 selected”) — for narrow places such as a filter cell. A text or count summary is added to the field's aria-describedby, and Backspace only removes visible chips. |
countThreshold | number | 1 | In 'count' mode, how many values still show as chips before the count replaces them. |
opened / dropdownPlacement / dropdownWidth / dropdownMaxHeight / showDropDownButton / openOnFieldClick | shared with OgeSelectBox | — | Popup configuration and two-way visibility. |
adaptiveMode / adaptiveBreakpoint | 'auto' | 'none' / number | config: 'none' / 600 | 'auto' presents the popup as a full-width bottom sheet (search field when searchEnabled, picks keep it open, a Done action closes it) on viewports narrower than adaptiveBreakpoint px — a titled role="dialog" surface with a close button, scroll lock, inert background, a Tab trap, focus restore, safe-area insets and 16px / 44px touch sizing; Escape, a backdrop tap or a swipe down the handle dismiss it. 'none' keeps the anchored drop-down. App-wide defaults come from provideOgeInputsConfig(). |
virtualScroll | boolean | OgeVirtualScrollOptions | false | Windowed rendering for large lists — same contract as the select box. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 7
OgeTagBox methods
| Name | Type | Description |
|---|---|---|
open() / close() / toggle() | void | Popup control (no-ops while disabled/readonly); close() returns false when a closing handler cancels. |
selectAll() / unselectAll() | void | Selects (up to maxSelectedItems) / clears the visible, enabled items. |
reload() | void | Drops every cached dataSource page and re-requests the current search. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 16
OgeTagBox events
| Name | Type | Description |
|---|---|---|
selectionChanged | OgeTagBoxSelectionChangedEvent | Per-commit delta — { addedItems, removedItems }. |
itemClick | OgeTagBoxItemClickEvent | An option row was toggled — { item, index, event }. |
selectAllValueChanged | OgeTagBoxSelectAllEvent | The "select all" row was toggled — { selected, event }. |
dropDownOpened / dropDownClosed | void | Popup visibility changes, from any trigger. |
opening / closing | OgeDropDownOpeningEvent / OgeDropDownClosingEvent | Cancelable pre-events — same contract as the select box. |
searchChanged | OgeSelectBoxSearchChangedEvent | Raw search text on every keystroke. |
customItemCreating | OgeSelectBoxCustomItemEvent | acceptCustomValue commit: assign customItem (an item, a promise of one, or null to reject). |
pageLoaded | OgeListPageLoadedEvent | A dataSource page landed. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 3
Tag box types
| Name | Type | Description |
|---|---|---|
OgeTagBoxTagTemplateContext | interface | { $implicit: TItem; index: number; text: string }. |
OgeTagBoxSelectAllEvent | interface | { selected: boolean; event: Event }. |
OgeSelectAllState | boolean | 'mixed' | State of the "select all" row. |
OgeAutocomplete
oge-autocompleteProperties 47
OgeAutocomplete
| Name | Type | Default | Description |
|---|---|---|---|
value | model<string> | '' | The typed text — the committed value is the string itself, not an item value; two-way. |
items | readonly TItem[] | OgeSelectBoxItemsFn | [] | The suggestion items: an array, or a function invoked lazily on first open (sync or promise; loading/error rows render while pending). |
displayExpr / disabledExpr / imageExpr / searchExpr / searchMode / groupBy / itemTemplate | shared with OgeSelectBox | — | The autocomplete reuses the select box expression vocabulary and list rendering verbatim (no valueExpr — the value is text). |
minSearchLength | number | 1 | Characters required before suggestions open while typing; deleting below the threshold closes the list. |
maxItemCount | number | 10 | Caps the rendered suggestion list. |
searchTimeout | number | undefined | — | Debounce before typed text filters the list; undefined = config default (250ms). The displayed text is never debounced. |
forceSelection | boolean | false | Reverts non-matching text to the last committed value on blur; an exact display match resolves to the item with its canonical casing. |
searchHighlight | boolean | true | Marks the matched part of each suggestion (<mark>). |
showDropDownButton | boolean | false | Renders the chevron toggle in the field rail (off by default — reference parity). |
openOnFieldClick | boolean | false | Clicking the field opens the suggestion list. |
loading / dropdownPlacement / dropdownWidth / dropdownMaxHeight / wrapItemText / useItemTextAsTitle | shared with OgeSelectBox | — | Popup configuration and list rendering. |
adaptiveMode / adaptiveBreakpoint | 'auto' | 'none' / number | config: 'none' / 600 | 'auto' presents the popup as a full-width bottom sheet with its own text field at the top on viewports narrower than adaptiveBreakpoint px — a titled role="dialog" surface with a close button, scroll lock, inert background, a Tab trap, focus restore, safe-area insets and 16px / 44px touch sizing; Escape, a backdrop tap or a swipe down the handle dismiss it. 'none' keeps the anchored drop-down. App-wide defaults come from provideOgeInputsConfig(). |
virtualScroll | boolean | OgeVirtualScrollOptions | false | Windowed rendering for large lists — same contract as the select box. |
opened | model<boolean> | false | Popup visibility — two-way. |
dataSource | OgeListDataSource<TItem> | undefined | — | Remote, paged suggestions — the typed text is the searchText (debounced by searchTimeout, gated by minSearchLength), further pages load as the list scrolls, superseded requests are aborted and pages are cached per search. maxItemCount does not apply; pageSize does. |
pageSize | number | undefined | config: 30 | Rows requested per dataSource page. |
selectedItem | Signal<TItem | null> | — | Read-only: the last picked suggestion; null once the text diverges from it. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 6
OgeAutocomplete methods
| Name | Type | Description |
|---|---|---|
open() / close() / toggle() | void | Popup control (no-ops while disabled/readonly). |
reload() | void | Drops every cached dataSource page and re-requests the current search. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 13
OgeAutocomplete events
| Name | Type | Description |
|---|---|---|
selectionChanged | OgeAutocompleteSelectionChangedEvent | A suggestion was picked or the selection was canceled — { item: TItem | null, event? }. |
itemClick | OgeAutocompleteItemClickEvent | A suggestion row was activated — { item, index, event }. |
dropDownOpened / dropDownClosed | void | Popup visibility changes, from any trigger. |
searchChanged | OgeSelectBoxSearchChangedEvent | Raw search text on every keystroke — drive server-side filtering from here. |
pageLoaded | OgeListPageLoadedEvent | A dataSource page landed. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 2
Autocomplete types
| Name | Type | Description |
|---|---|---|
OgeAutocompleteSelectionChangedEvent | interface | { item: TItem | null; event?: Event } — null means the selection was canceled. |
OgeVirtualScrollOptions | interface | { itemHeight?: number; overscan?: number }; default heights come from OGE_SELECT_OPTION_HEIGHT (28/34/40px for sm/md/lg). |
OgeMultiColumnComboBox
oge-multi-column-combo-boxProperties 48
OgeMultiColumnComboBox
| Name | Type | Default | Description |
|---|---|---|---|
value | model<unknown> | null | Committed value — the selected row's valueExpr (null when empty), or an array of them in multiple mode; two-way. |
items | readonly TItem[] | OgeSelectBoxItemsFn | [] | The rows: an array, or a function invoked lazily on first open. |
columns | readonly OgeComboBoxColumn<TItem>[] | [] | Popup columns, left to right: field (dot-notation), caption, width (px or any CSS track), format (Intl options or a function), alignment, searchable, cssClass and an optional cellTemplate. |
displayExpr | string | ((item) => string) | — | Row → field text. Omitted, the first column's formatted cell text. |
valueExpr / disabledExpr | string | fn | — | Committed value and per-row disabling — the select box vocabulary. |
selectionMode | 'single' | 'multiple' | 'single' | multiple makes value an array, renders removable chips, keeps the popup open while picking and sets aria-multiselectable. |
searchEnabled | boolean | true | Typing filters the rows (it is a combo box). |
searchMode / searchExpr / searchTimeout / minSearchLength / showDataBeforeSearch | shared with OgeSelectBox | — | Without searchExpr every column whose searchable is not false is searched by its formatted cell text. |
showHeader | boolean | true | Renders the sticky column header row. |
showDropDownButton / openOnFieldClick / loading | boolean | — | Shared with the select box. |
maxDisplayedTags | number | undefined | — | In multiple mode, folds chips past the cap into +N more. |
dropdownPlacement / dropdownWidth / dropdownMaxHeight | OgePopupPlacement / number | 'anchor' / number | — | Popup geometry. With 'anchor', all-pixel column widths still set the grid's minimum width — the popup scrolls horizontally rather than squeezing columns. |
virtualScroll | boolean | OgeVirtualScrollOptions | false | Windowed row rendering. The sticky header shares the scroller, so the window math subtracts one header row. |
dataSource | OgeListDataSource<TItem> | undefined | — | Remote, paged data: any @oge-ui/core DataSource (CustomDataSource, ArrayDataSource, CursorDataSource, ODataDataSource) or an object with the same load(), plus an optional byKey(). Replaces items while set: pages of pageSize rows load as the list scrolls (virtual window or scroll position, and the keyboard reaching the end), the typed text is sent as searchText (debounced by searchTimeout, gated by minSearchLength), superseded requests are aborted through the AbortSignal, each search's pages are cached, and a committed value no loaded page holds resolves through byKey. Without totalCount the list keeps paging until a short page arrives. |
pageSize | number | undefined | config: 30 | Rows requested per dataSource page (take); undefined = provideOgeInputsConfig({ dataPageSize }). |
opened | model<boolean> | false | Popup visibility — two-way. |
adaptiveMode / adaptiveBreakpoint | 'auto' | 'none' / number | config: 'none' / 600 | 'auto' presents the grid as a bottom sheet (title, close button, a search field, a Done action in multiple mode) on viewports narrower than the breakpoint. |
selectedItems / selectedItem | Signal<readonly TItem[]> / Signal<TItem | null> | — | Read-only: the rows the value resolves to. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 6
OgeMultiColumnComboBox methods
| Name | Type | Description |
|---|---|---|
open() / close() / toggle() | void | Popup control; close() returns false when a closing handler cancels. |
reload() | void | Drops every cached dataSource page and re-requests the current search. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 14
OgeMultiColumnComboBox events
| Name | Type | Description |
|---|---|---|
selectionChanged | OgeMultiColumnComboBoxSelectionChangedEvent | { selectedItems, addedItems, removedItems } on every commit. |
rowClick | OgeMultiColumnComboBoxRowClickEvent | A row was activated — { item, index, event }. |
dropDownOpened / dropDownClosed | void | Popup visibility changes. |
opening / closing | OgeDropDownOpeningEvent / OgeDropDownClosingEvent | Cancelable pre-events. |
searchChanged | OgeSelectBoxSearchChangedEvent | Raw search text on every keystroke. |
pageLoaded | OgeListPageLoadedEvent | A dataSource page landed. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 4
Multi-column combo box types
| Name | Type | Description |
|---|---|---|
OgeComboBoxColumn | interface | { field; caption?; width?: number | string; format?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((value, item) => string); alignment?: 'start' | 'center' | 'end'; searchable?; cssClass?; cellTemplate? }. |
OgeComboBoxCellTemplateContext | interface | { $implicit: TItem; value; text; rowIndex }. |
OgeMultiColumnComboBoxSelectionMode | 'single' | 'multiple' | How many rows may be committed. |
Keyboard (APG combobox with grid popup) | keys | Down/Up open and move rows; once in the grid Left/Right/Home/End move between cells (mirrored in RTL) and Ctrl+Home/End jump to the first/last row; PageUp/PageDown move ten rows; Enter (and Space after navigating) commits; Alt+Up commits and closes; Escape closes, then clears the search; Backspace removes the last chip in multiple mode. |
OgeCheckBox
oge-check-boxProperties 18
OgeCheckBox
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Text rendered beside the control. |
value | model<boolean | null> | false | true/false, or null for the indeterminate (dash) state — two-way. null renders regardless of threeState. |
threeState | boolean | false | Lets users cycle into the indeterminate state: null → true → false → null (the reference cycle). |
text | string | '' | Label text; the default <ng-content> slot renders when unset. |
size | 'sm' | 'md' | 'lg' | 'md' | Glyph/font size preset. |
tooltip | string | undefined | — | Native title on the label element. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 5
OgeCheckBox methods
| Name | Type | Description |
|---|---|---|
toggle(): void | void | Advances the state exactly like a user click (respects threeState, no-op while disabled/readonly). |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 8
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
OgeSlider
oge-sliderProperties 25
OgeSlider
| Name | Type | Default | Description |
|---|---|---|---|
value | model<number> | 0 | The slider value — two-way. Programmatic writes clamp and snap to the step grid. |
min / max | number | undefined | 0 / 100 | Scale bounds. Typed number | undefined because the Signal Forms contract reserves these member names — undefined falls back to 0/100. |
step | number | 1 | Arrow-key and drag increment; thumbs always sit on this grid, with float-error correction (0.1-style steps never drift). |
largeStep | number | undefined | — | PageUp/PageDown increment; undefined means step × 10. |
orientation | 'horizontal' | 'vertical' | 'horizontal' | A vertical slider announces aria-orientation="vertical"; Up still increases (APG). |
showRange | boolean | true | Fills the selected portion of the track. |
showTicks / tickStep | boolean / number | undefined | false | Tick marks on the tickStep grid — falling back to largeStep, then step; capped at 200 marks. |
showTickLabels | boolean | false | Formatted labels under each tick (Kendo's tick title callback, fed by formatValue). |
showLabels | boolean | false | Formatted min/max labels at the track ends. |
valueIndicator | 'none' | 'active' | 'always' | 'none' | The inline value bubble: 'active' while focused, dragged or hovered (Material's discrete plus DevExtreme's showMode: 'onHover'), 'always' permanent. |
formatValue | (value: number) => string | undefined | — | Formats the bubble, the end labels and aria-valuetext — display and announcement never diverge. |
showButtons | boolean | false | Kendo-style increment/decrement buttons with press-and-hold repeat — the number box's spin timing config. |
ariaLabel | string | undefined | — | Accessible name of the thumb; the localized sliderHandle message is the fallback. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 10
OgeSlider events
| Name | Type | Description |
|---|---|---|
dragStarted | OgeSliderDragStartedEvent | A drag gesture began on the thumb or the track. |
slideEnded | OgeSliderSlideEndedEvent<number> | Fires once per gesture at release — DevExtreme's onHandleRelease timing without a mode switch (live changes stream through valueCommitted, throttled by debounce). Not emitted when Escape cancels the gesture. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 3
| Name | Type | Description |
|---|---|---|
OgeSliderOrientation | 'horizontal' | 'vertical' | Axis the track lays along. |
OgeSliderValueIndicator | 'none' | 'active' | 'always' | When the inline value bubble shows. |
OgeSliderDragStartedEvent / OgeSliderSlideEndedEvent<T> | { event } / { value; event } | The drag gesture pair. |
OgeRangeSlider
oge-range-sliderProperties 17
OgeRangeSlider
| Name | Type | Default | Description |
|---|---|---|---|
value | model<readonly [number, number]> | [0, 0] | The [start, end] pair — two-way. Programmatic writes clamp, snap and sort. |
minRange | number | 0 | Minimum distance kept between the thumbs — reflected in each thumb’s dynamic aria-valuemin/aria-valuemax (the APG multi-thumb constraint). |
startAriaLabel / endAriaLabel | string | undefined | — | Accessible names of the thumbs; the localized sliderStartHandle/sliderEndHandle messages are the fallbacks. |
startName / endName | string | '' | Hidden-input names for plain HTML form posts — DevExtreme's startName/endName contract (the single slider uses the inherited name). |
Shared with OgeSlider
| Name | Type | Default | Description |
|---|---|---|---|
min / max / step / largeStep / orientation / showRange / showTicks / tickStep / showLabels / valueIndicator / formatValue | — | — | The full scale/appearance surface of OgeSlider, identical semantics. showButtons is single-slider only (the Kendo split). Clicking the track moves the nearest thumb. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 9
OgeRangeSlider events
| Name | Type | Description |
|---|---|---|
dragStarted / slideEnded | OgeSliderSlideEndedEvent<readonly [number, number]> | The drag gesture pair; an unchanged pair never re-emits valueCommitted. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
OgeSwitch
oge-switchProperties 16
OgeSwitch
| Name | Type | Default | Description |
|---|---|---|---|
value | model<boolean> | false | The on/off state — two-way. |
label | string | '' | Accessible name (aria-label). |
onText / offText | string | undefined | — | Track texts; undefined falls back to the localized switchOn/switchOff messages ('ON'/'OFF'), empty strings hide the text. |
size | 'sm' | 'md' | 'lg' | 'md' | Track size preset. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 5
OgeSwitch methods
| Name | Type | Description |
|---|---|---|
toggle(): void | void | Flips the state (no-op while disabled/readonly). |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 8
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
OgeRadioGroup
oge-radio-groupProperties 19
OgeRadioGroup
| Name | Type | Default | Description |
|---|---|---|---|
value | model<unknown> | null | The selected item's valueExpr result; two-way. |
items | readonly TItem[] | [] | The selectable items. |
displayExpr / valueExpr / disabledExpr | shared with OgeSelectBox | — | Field-name string or function expressions — the select box vocabulary. |
layout | 'vertical' | 'horizontal' | 'vertical' | Column or row arrangement. |
label | string | '' | Accessible name of the group (aria-label). |
itemTemplate | TemplateRef<OgeSelectItemTemplateContext> | — | Custom item rendering next to the radio dot; context: $implicit, index, selected, active. |
size | 'sm' | 'md' | 'lg' | 'md' | Dot/font size preset. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 9
OgeRadioGroup events
| Name | Type | Description |
|---|---|---|
itemClick | OgeRadioGroupItemClickEvent | A radio item was activated by click or keyboard — { item, index, event }. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
OgeCalendar
oge-calendarProperties 30
Slot & locale helper
| Name | Type | Default | Description |
|---|---|---|---|
*ogeCalendarCellTemplate | OgeCalendarCellTemplate | — | Replaces the default day-cell rendering — badges, prices, availability dots. Also usable on oge-date-box and oge-date-range-box, which project into the same calendar. |
datePartOrder(locale, kind) | (locale: string | undefined, kind: 'date' | 'datetime' | 'time') => string[] | — | The order a locale writes date parts in, derived from Intl. Drives locale-aware typed parsing; exported so consumers can build their own date editors on the same rules. |
OgeCalendar
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Accessible name of the grid (aria-label); the messages supply a default. |
value | model<Date | null> | null | The selected day (single mode) — two-way, local Date. |
values | model<readonly Date[]> | [] | Selected days for selectionMode: 'multiple' — two-way. |
selectionMode | 'single' | 'multiple' | 'range' | 'single' | Range mode picks a start–end pair with a live hover preview. |
range | model<[Date | null, Date | null]> | [null, null] | The selected tuple for selectionMode: 'range' — two-way; either end may stay open. |
viewsCount | 1 | 2 | 1 | Side-by-side month views (2 is the range layout). |
zoomLevel / minZoomLevel / maxZoomLevel | 'month' | 'year' | 'decade' | 'month' / 'decade' / 'month' | Drill level (two-way) and its reachable bounds; dx's 'century' is deliberately dropped. |
min / max | Date | undefined | — | Day bounds; undefined = unbounded (no dx 1000–3000 defaults). |
disabledDates | Date[] | ((d: Date) => boolean) | — | Individual unselectable days. |
firstDayOfWeek | number | undefined | — | 0–6 (Sunday-first); undefined resolves from the locale's Intl week info. |
showWeekNumbers | boolean | { rule: 'firstDay' | 'firstFourDays' | 'fullWeek' } | false | Week-number column; true = the ISO rule. |
showTodayButton | boolean | false | Renders the localized today shortcut. |
focusedDate | model<Date | null> | — | The keyboard-focused day — two-way (controlled navigation). |
locale | string | undefined | — | BCP 47 locale for all texts (Intl). |
timeZone | string | undefined | IANA zone the days are read in: value, values and range stay instants, the grid shows their day on that zone's clocks, a picked day is that zone's midnight and "today" is the zone's today. Unset = the runtime's own zone. |
cellTemplate | TemplateRef<OgeCalendarCellTemplateContext> | — | Custom cell rendering — also available as the projected [ogeCalendarCellTemplate] slot. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 9
OgeCalendar events
| Name | Type | Description |
|---|---|---|
cellClick | OgeCalendarCellClickEvent | A day/month/year cell was activated — { date, view, event }. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
OgeDateBox
oge-date-boxProperties 57
OgeDateBox
| Name | Type | Default | Description |
|---|---|---|---|
dropdownPlacement | OgePopupPlacement | 'bottom-start' | Preferred popup side/alignment; flips when it would clip. |
adaptiveMode / adaptiveBreakpoint | 'auto' | 'none' / number | config: 'none' / 600 | 'auto' presents the popup as a full-screen dialog with 44px day cells on viewports narrower than adaptiveBreakpoint px — a titled role="dialog" surface with a close button, scroll lock, inert background, a Tab trap, focus restore, safe-area insets and 16px / 44px touch sizing; Escape, a backdrop tap or a swipe down the handle dismiss it. 'none' keeps the anchored drop-down. App-wide defaults come from provideOgeInputsConfig(). |
showDropDownButton | boolean | true | Renders the rail button that toggles the picker; the field click and the keyboard still open it when hidden. |
value | model<Date | null> | null | Always a local Date — serialization is the app's concern (no dateSerializationFormat). CVA writes accept ISO-like strings and epoch numbers leniently. |
type | 'date' | 'time' | 'datetime' | 'date' | Picker: calendar, interval time list, or both (no dx pickerType). The rail icon follows the type. |
displayFormat | Intl.DateTimeFormatOptions | ((d: Date) => string) | — | Display text; undefined = per-type Intl defaults. No format strings, no date library. |
min / max / disabledDates | as OgeCalendar | — | Out-of-range typed text marks the field invalid — it is never clamped (unlike the number box). |
interval | number | 30 | Time list step in minutes. |
timeView | 'list' | 'columns' | 'list' | Time picker layout: one interval list, or hour + minute columns (plus seconds / AM-PM columns when enabled). Each column is a labelled listbox. |
hour12 | boolean | undefined | — | Clock of the display text and the picker. true adds an AM/PM column to timeView: 'columns' (hours 12, 1 … 11); false forces 24-hour; undefined follows the locale with the single 24-entry hour column. |
showSeconds | boolean | false | Seconds in the display text (timeStyle: 'medium'), a seconds column and a seconds segment of the masked entry; typed HH:MM:SS parses. Off, picks zero the seconds. |
showTodayButton | boolean | false | Footer "Today" button (date / datetime): picks today through the calendar path — datetime keeps the time of day. Disabled when min/max/disabledDates exclude today. |
showNowButton | boolean | false | Footer "Now" button (time / datetime): commits the current time (seconds kept only with showSeconds) and closes; with useButtons it drafts instead. |
timeZone | string | undefined | IANA zone the value is shown and edited in ('Europe/Istanbul', 'UTC'). The value stays an instant: the field and the calendar show its wall clock in this zone, Today / Now are the zone's, and a picked day or time is that zone's. A date-only value a server keeps as UTC midnight reads right with timeZone="UTC". Unset = the runtime's own zone. |
useMaskBehavior | boolean | false | Segment entry (DevExtreme useMaskBehavior): the field shows the locale’s numeric pattern (dd.mm.yyyy, mm/dd/yyyy… from Intl), digits fill the selected segment and auto-advance, ArrowUp/Down step it with wrap-around, ArrowLeft/Right (mirrored in RTL) and Home/End move between segments, Backspace/Delete clear, a typed separator moves on, a/p set AM/PM, paste reads a whole date and Alt+ArrowDown opens the picker. Commits on blur/Enter like typed text; impossible dates show the invalid state and revert. displayFormat is not used while it is on. |
applyValueMode | 'instantly' | 'useButtons' | 'instantly' | OK/Cancel footer collects picker changes in a draft when useButtons. |
acceptCustomValue | boolean | true | false makes the text read-only (picker input only). |
openOnFieldClick | boolean | true | Clicking the field opens the picker. |
firstDayOfWeek / showWeekNumbers / zoomLevel / calendarCellTemplate / locale | calendar passthroughs | — | Exposed individually — no calendarOptions kitchen-sink object. |
opened | model<boolean> | false | Picker visibility — two-way. |
OgeDateRangeBox
| Name | Type | Default | Description |
|---|---|---|---|
value | model<[Date | null, Date | null]> | [null, null] | Start–end tuple on one field: two parsed inputs + a two-view range calendar popup. A reversed pair reorders on commit; either end may stay open. |
type | OgeDateRangeBoxType | 'date' | 'datetime' adds start/end time lists to the picker: day and time picks collect in a draft and commit together on OK; both sides parse and render times. 'time' is a time-range picker — no calendar, two time lists and OK. |
presets | readonly OgeDateRangePreset[] | [] | Quick ranges listed beside the calendar (a horizontal chip row in the adaptive dialog), each an aria-pressed button that reads pressed while the draft matches it. { label, range: () => [start, end] } — range is evaluated on render and on pick, never at construction — or the built-in ogeDateRangePresets.today() / yesterday() / last7Days() / last30Days() / thisWeek() / lastWeek() / thisMonth() / lastMonth() / thisYear() / lastYear(), labelled from the messages. A date box commits and closes on a pick; time/datetime and the adaptive dialog draft it for OK/Done. |
hour12 / showSeconds | boolean | undefined / boolean | — | Clock and seconds of the display text and the time lists, as on OgeDateBox. |
interval | number | 30 | Time list step in minutes (type: 'time' | 'datetime'). |
min / max / disabledDates / firstDayOfWeek / showWeekNumbers / locale / displayFormat / openOnFieldClick / acceptCustomValue | as OgeDateBox | — | Shared configuration surface. |
adaptiveMode / adaptiveBreakpoint | 'auto' | 'none' / number | config: 'none' / 600 | 'auto' presents the popup as a full-screen dialog showing one month, where picking both ends waits for an explicit Done that applies the range on viewports narrower than adaptiveBreakpoint px — a titled role="dialog" surface with a close button, scroll lock, inert background, a Tab trap, focus restore, safe-area insets and 16px / 44px touch sizing; Escape, a backdrop tap or a swipe down the handle dismiss it. 'none' keeps the anchored drop-down. App-wide defaults come from provideOgeInputsConfig(). |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 5
OgeDateBox methods
| Name | Type | Description |
|---|---|---|
open() / close() / toggle() | void | Picker control (no-ops while disabled/readonly). |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 9
OgeDateBox events
| Name | Type | Description |
|---|---|---|
dropDownOpened / dropDownClosed | void | Picker visibility changes, from any trigger. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 6
Date types
| Name | Type | Description |
|---|---|---|
parseDateText(text, locale, kind, reference?) | function | Exported: locale-aware text → local Date | null via Intl part order — never Date.parse. |
OgeDateBoxType / OgeDateBoxApplyValueMode / OgeDateBoxDisplayFormat / OgeDateBoxTimeView | types | The string unions and the display-format shape. |
OgeDateRangeBoxType | 'date' | 'time' | 'datetime' | What the date range box edits. |
OgeDateRangePreset | { label?: string; id?: string; range: () => [Date | null, Date | null] } | One preset entry. label wins; built-ins carry an id whose message supplies the label. |
ogeDateRangePresets | object of factories | Built-in presets, each (options?: { label?, now? }) => OgeDateRangePreset covering whole local days; thisWeek/lastWeek also take firstDayOfWeek / locale. now overrides the clock (tests, "as of" pages). |
OgeDateRangePresetId / OgeDateRangePresetOptions / OgeDateRangeWeekPresetOptions | types | The built-in ids and the factory option shapes. |
OgeColorBox
oge-color-boxProperties 46
OgeColorBox
| Name | Type | Default | Description |
|---|---|---|---|
dropdownPlacement | OgePopupPlacement | 'bottom-start' | Preferred popup side/alignment; flips when it would clip. |
adaptiveMode / adaptiveBreakpoint | 'auto' | 'none' / number | config: 'none' / 600 | 'auto' presents the popup as a full-width bottom sheet on viewports narrower than adaptiveBreakpoint px — a titled role="dialog" surface with a close button, scroll lock, inert background, a Tab trap, focus restore, safe-area insets and 16px / 44px touch sizing; Escape, a backdrop tap or a swipe down the handle dismiss it. 'none' keeps the anchored drop-down. App-wide defaults come from provideOgeInputsConfig(). |
showDropDownButton | boolean | true | Renders the rail button that toggles the picker; the field click and the keyboard still open it when hidden. |
value | model<string | null> | null | The committed color as a CSS string, normalized to format on user commits. Programmatic writes keep any parseable CSS color verbatim (never reformatted); unparseable writes land as null. |
format | 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hex' | Committed string shape (hex — the DevExtreme default; Kendo defaults to rgba). Translucent colors widen to carry alpha: #rrggbbaa / rgba() / hsla(). |
view | 'gradient' | 'palette' | 'both' | 'gradient' | Popup surfaces: the saturation/brightness gradient with sliders and inputs, the swatch palette, or both stacked — no view switcher (Kendo's activeView is deliberately skipped). |
editAlphaChannel | boolean | false | Adds the alpha slider + percent input and lets the output carry alpha. Without it, alpha is coerced to 1 on commit — rgba() text still parses. |
applyValueMode | 'instantly' | 'useButtons' | 'instantly' | OK/Cancel footer collects panel interactions in a draft when useButtons; the default commits live (dragging streams through valueCommitted, throttled by debounce). |
acceptCustomValue | boolean | true | false makes the text read-only (picker input only). Typed text parses any CSS color incl. the 148 named colors; unparseable text reverts on blur. |
keyStep | number | 5 | Arrow-key increment of the panel parts in value units — hue degrees, alpha percent, surface saturation/brightness percent. PageUp/PageDown move by 5× (value-space, not Kendo’s pixel steps — zoom-independent). |
palette | readonly string[] | undefined | — | Palette swatches as CSS color strings; undefined renders the exported OGE_DEFAULT_COLOR_PALETTE. Unparseable entries are dropped. |
paletteColumns | number | 10 | Swatch columns of the palette grid. |
openOnFieldClick | boolean | true | Clicking the field opens the picker. |
showDropDownButton | boolean | true | false hides the rail chevron — field click and ArrowDown still open. |
showEyedropper | boolean | true | The eyedropper button (pick a color from anywhere on screen) — rendered only in browsers shipping the EyeDropper API; progressive enhancement, no polyfill. The picked color keeps the working alpha. |
opened | model<boolean> | false | Picker visibility — two-way. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 5
OgeColorBox methods
| Name | Type | Description |
|---|---|---|
open() / close() / toggle() | void | Picker control (no-ops while disabled/readonly). |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 9
OgeColorBox events
| Name | Type | Description |
|---|---|---|
dropDownOpened / dropDownClosed | void | Picker visibility changes, from any trigger. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 4
Color types
| Name | Type | Description |
|---|---|---|
OgeColorBoxView / OgeColorBoxApplyValueMode | types | The string unions of view and applyValueMode. |
OGE_DEFAULT_COLOR_PALETTE | readonly string[] | The built-in 50-swatch palette used when palette is not set. |
Color messages | OgeInputsMessages keys | All popup strings localize through the family config: colorPickerLabel, hueSliderLabel/hueValueText, alphaSliderLabel/alphaValueText, colorSurfaceLabel/colorSurfaceRoleDescription/surfaceValueText, paletteLabel, the hex/R/G/B/A input labels, eyedropperButton and invalidColorError. |
parseColor / formatColor / normalizeColor / rgbaToHsva / hsvaToRgba / relativeLuminance / contrastForeground / colorsEqual | @oge-ui/core | The DOM-free color kernel (OgeRgba / OgeHsva / OgeColorFormat): CSS color-text parsing, HSV↔RGB conversion, canonical formatting and the WCAG swatch-contrast decision — unit-tested without a DOM, the slider-math precedent. |
OgeColorGradient
oge-color-gradientProperties 20
OgeColorGradient
| Name | Type | Default | Description |
|---|---|---|---|
value | model<string | null> | null | The committed color as a CSS string, normalized to format on commit; parseable programmatic values are kept verbatim — two-way. |
label | string | '' | Accessible name of the role="group"; falls back to the colorGradientLabel message. |
format | OgeColorFormat | 'hex' | Committed string shape (hex / rgb / rgba / hsl); translucent colors widen to carry alpha. |
editAlphaChannel | boolean | false | Renders the alpha slider and the alpha-percent input, and commits alpha-carrying strings. |
keyStep | number | 5 | Arrow-key increment of the surface and sliders (degrees / percent); PageUp/PageDown move 5×. |
showInputs | boolean | true | Renders the hex + R/G/B(/A) inputs. They commit on change (blur / Enter); unusable text is reverted, never applied. |
showContrast | boolean | false | Renders the WCAG contrast readout — a sample, the ratio and AA / AAA pass-fail badges (Kendo’s contrastTool). |
contrastBackground | string | '#ffffff' | The background (any CSS color) the contrast ratio is measured against — set it to the surface the color will sit on. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 8
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 4
Contrast & palette helpers
| Name | Type | Description |
|---|---|---|
contrastRatio | (foreground: OgeRgba, background: OgeRgba) => number | WCAG 2.x contrast ratio (1–21). A translucent foreground is composited over the background first, so the ratio describes the rendered pair. Re-exported from @oge-ui/behavior. |
contrastLevels | (ratio: number) => OgeContrastLevels | Classifies a ratio against AA (4.5), AA large (3), AAA (7) and AAA large (4.5). The comparison runs on the unrounded ratio; the displayed ratio is truncated, never rounded up into a pass. |
OgeContrastLevels | { ratio; aa; aaLarge; aaa; aaaLarge } | Result of contrastLevels. |
Color gradient messages
| Name | Type | Description |
|---|---|---|
colorGradientLabel / contrastLabel / contrastRatioText / contrastPass / contrastFail | OgeInputsMessages keys | The gradient’s own strings ({ratio} / {level} placeholders); the surface, slider and channel-input labels are the color box’s keys. |
OgeColorPalette
oge-color-paletteProperties 17
OgeColorPalette
| Name | Type | Default | Description |
|---|---|---|---|
value | model<string | null> | null | The picked swatch string as listed in the palette — two-way. |
palette | OgeColorPalettePreset | readonly string[] | 'default' | A preset ('default' | 'basic' | 'office' | 'material' | 'monochrome') or your own CSS color list; unparseable entries are dropped. |
columns | number | undefined | — | Tiles per row; undefined uses the preset’s own count (10 for a custom list). |
tileSize | number | undefined | — | Tile edge in px; undefined lets the tiles share the available width. |
label | string | '' | Accessible name of the grid; falls back to the paletteLabel message. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 8
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 4
Palette types
| Name | Type | Description |
|---|---|---|
OgeColorPalettePreset | 'default' | 'basic' | 'office' | 'material' | 'monochrome' | The built-in swatch sets. |
OGE_COLOR_PALETTE_PRESETS | Record<OgeColorPalettePreset, OgeColorPalettePresetData> | The preset data — { colors, columns } each — for building your own picker around the same sets. |
OgeColorPalettePresetData | { colors: readonly string[]; columns: number } | One preset. |
Keyboard | APG grid | Arrows move by tile / row (RTL-mirrored; no wrap, no row crossing), Home/End to the row edges, Ctrl+Home/Ctrl+End to the corners, Enter/Space picks. One roving tab stop — the selected tile, else the first. |
OgeCheckBoxGroup
oge-check-box-groupProperties 22
OgeCheckBoxGroup
| Name | Type | Default | Description |
|---|---|---|---|
value | model<readonly unknown[]> | [] | The checked items’ valueExpr results, in items order (not click order); values no item produces are kept — two-way. |
items | readonly TItem[] | [] | One check box per item. |
displayExpr / valueExpr / disabledExpr | shared with OgeSelectBox | — | Field-name string or function expressions. Disabled items keep their checked state — select all never changes them. |
layout | OgeCheckBoxGroupLayout | 'vertical' | 'vertical', 'horizontal' (wrapping row) or 'columns' (a columns-column grid). |
columns | number | 2 | Column count of layout: 'columns'. |
label | string | '' | Visible group label and the group’s accessible name (aria-labelledby); a required marker follows it. |
hint | string | undefined | — | Helper text under the items (aria-describedby), hidden while an error shows. |
showSelectAll | boolean | false | A tri-state “select all” box above the items — checked / mixed / unchecked over the enabled items; from mixed it selects all. |
selectAllText | string | undefined | — | Text of the select-all box; undefined = the selectAllText message. |
itemTemplate | TemplateRef<OgeCheckBoxGroupItemTemplateContext> | — | Custom label next to each glyph; context: $implicit, index, checked. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 5
OgeCheckBoxGroup methods
| Name | Type | Description |
|---|---|---|
selectAll() / unselectAll() | () => void | Checks / unchecks every enabled item (disabled items keep their state); commits immediately. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 10
OgeCheckBoxGroup events
| Name | Type | Description |
|---|---|---|
itemClick | OgeCheckBoxGroupItemClickEvent | One check box was toggled by the user — { item, index, checked, event }. |
selectAllChanged | OgeCheckBoxGroupSelectAllEvent | The select-all box was toggled by the user — { checked, event }. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 4
| Name | Type | Description |
|---|---|---|
OgeCheckBoxGroupLayout | 'horizontal' | 'vertical' | 'columns' | Arrangement of the boxes. |
OgeCheckBoxGroupItemClickEvent / OgeCheckBoxGroupSelectAllEvent | interfaces | Payloads of itemClick / selectAllChanged. |
OgeCheckBoxGroupItemTemplateContext | { $implicit; index; checked } | Context of itemTemplate. |
Validation | forms | Reactive Validators.required treats [] as empty. Signal Forms' required() does not — express “at least one” as minLength(p.field, 1, { message }). |
OgeToggleGroup
oge-toggle-groupProperties 21
OgeToggleGroup
| Name | Type | Default | Description |
|---|---|---|---|
value | model<unknown> | null | The selected item's valueExpr result (single; null = none) or an array of them in items order (multiple) — two-way. |
items | readonly TItem[] | [] | The segments. |
displayExpr / valueExpr / disabledExpr | shared with OgeSelectBox | — | Field-name string or function expressions. |
selectionMode | OgeToggleGroupSelectionMode | 'single' | 'single' — the APG radio group (arrows move focus and selection; the selected segment cannot be pressed off). 'multiple' — aria-pressed toggle buttons (arrows move focus only). |
label | string | '' | Visible caption and the accessible name of the segment track. |
hideLabel | boolean | false | Keeps label as the accessible name only (aria-label), without the caption. |
hint | string | undefined | — | Helper text under the segments, hidden while an error shows. |
fluid | boolean | false | Stretches the track to the container width; segments share it equally. |
itemTemplate | TemplateRef<OgeToggleGroupItemTemplateContext> | — | Custom segment content (icons, badges); context: $implicit, index, selected. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 10
OgeToggleGroup events
| Name | Type | Description |
|---|---|---|
itemClick | OgeToggleGroupItemClickEvent | A segment was pressed by click or keyboard, before any value change — { item, index, event }. |
selectionChanged | OgeToggleGroupSelectionChangedEvent | The value changed through user interaction — { value, addedValues, removedValues }. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 4
| Name | Type | Description |
|---|---|---|
OgeToggleGroupSelectionMode | 'single' | 'multiple' | One value or many. |
OgeToggleGroupItemClickEvent / OgeToggleGroupSelectionChangedEvent | interfaces | Payloads of itemClick / selectionChanged. |
OgeToggleGroupItemTemplateContext | { $implicit; index; selected } | Context of itemTemplate. |
vs. OgeButtonGroup | choice | oge-button-group is an action / segmented control with selectedKeys; oge-toggle-group is the form editor — label, hint, validation, Signal Forms and reactive forms, scalar single value. Both run the same @oge-ui/behavior selection and arrow-key functions. |
OgeRating
oge-ratingProperties 24
OgeRating
| Name | Type | Default | Description |
|---|---|---|---|
value | model<number | null> | null | The rating — two-way; null means not rated. Snapped to precision inside 0…max. |
max | number | undefined | 5 | Number of items (stars); undefined means 5. A Signal Forms schema max() writes it through [formField]. |
precision | number | 1 | Value step: 1 whole items, 0.5 halves, 0.1 tenths (at least 0.01). A pointer press rounds up to the next step inside the item. |
allowClear | boolean | true | A press on the current value — or Delete / Backspace / 0 — clears it; also lowers aria-valuemin to 0. |
icon | OgeRatingIcon | 'star' | The built-in glyph: 'star' | 'heart' | 'circle'. An item template replaces it. |
selection | OgeRatingSelection | 'continuous' | 'continuous' paints every item up to the value; 'single' only the item holding it (a pick-one scale). |
semantics | OgeRatingSemantics | 'slider' | 'slider' — one APG slider, any precision; 'radiogroup' — one radio per item with a roving tab stop (whole-item precision only, otherwise the slider). |
hoverPreview | boolean | true | Paints the value under a mouse pointer before it is pressed. |
label | string | '' | Accessible name; empty falls back to the ratingLabel message. |
locale | string | undefined | — | Locale of the spoken value (aria-valuetext); falls back to the config locale, then LOCALE_ID. |
itemTemplate | TemplateRef<OgeRatingItemTemplateContext> | undefined | — | Custom glyph per item — the input form of the [ogeRatingItemTemplate] slot. |
size | 'sm' | 'md' | 'lg' | 'md' | Item size preset — 18 / 24 / 32px. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 9
OgeRating events
| Name | Type | Description |
|---|---|---|
hoverChanged | OgeRatingHoverEvent | The pointer previews another value — { value, event }, value: null once it leaves. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 9
Rating types
| Name | Type | Description |
|---|---|---|
OgeRatingItemTemplate | directive | <ng-template ogeRatingItemTemplate let-item let-filled="filled"> — rendered for the empty and the filled (clipped) layer of every item, so fractional fills work with any markup. |
OgeRatingItemTemplateContext | { $implicit: OgeRatingItemState; filled: boolean; hovered: boolean } | Context of the item template. |
OgeRatingItemState | { index; itemValue; fill; full; partial } | One item: zero-based index, the itemValue a full press commits, the filled share fill (0…1). |
OgeRatingIcon | 'star' | 'heart' | 'circle' | The built-in glyphs. |
OgeRatingSelection | 'continuous' | 'single' | How the value is painted. |
OgeRatingSemantics | 'slider' | 'radiogroup' | The ARIA pattern rendered. |
OgeRatingHoverEvent | { value: number | null; event: Event } | Payload of hoverChanged. |
Keyboard | APG slider / radio group | Slider: ArrowRight/ArrowUp step up by precision, ArrowLeft/ArrowDown down (horizontal arrows mirror in RTL), PageUp/PageDown by one item, Home/End, digits 1–9 jump, Delete/Backspace/0 clear. Radio group: arrows move and select with wrapping, Home/End, Space. |
Messages | OgeInputsMessages | ratingLabel, ratingValueText ({value} / {max}, or an ICU plural) and ratingNoValueText. |
OgeOtpInput
oge-otp-inputProperties 24
OgeOtpInput
| Name | Type | Default | Description |
|---|---|---|---|
value | model<string> | '' | The characters entered — always a contiguous prefix, so value.length === length means complete. Two-way. |
length | number | 6 | Number of cells (1–12). |
type | OgeOtpInputType | 'numeric' | Accepted characters: 'numeric' (script and full-width digits fold to ASCII), 'alphanumeric' or 'alphabetic'. Rejected characters never land. |
letterCase | OgeOtpInputCase | 'none' | 'upper' / 'lower' applied to typed and pasted letters. |
masked | boolean | false | Hides the characters like a password field (PINs). |
groupSize | number | 0 | Draws separator after every groupSize cells (3 → 123–456); 0 = none. |
separator | string | '–' | Separator glyph between groups — decorative, hidden from assistive technology. |
placeholder | string | '' | Placeholder character shown in empty cells. |
label | string | '' | Visible group label and the group’s accessible name; empty falls back to the otpLabel message. |
hint | string | undefined | — | Helper text under the cells (hidden while an error shows). |
locale | string | undefined | — | Locale of the cell names’ digits; falls back to the config locale, then LOCALE_ID. |
size | 'sm' | 'md' | 'lg' | 'md' | Cell size preset. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 4
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 9
OgeOtpInput events
| Name | Type | Description |
|---|---|---|
completed | OgeOtpCompletedEvent | Every cell got filled — by typing, a paste or the SMS autofill: { value, event }. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 6
OTP input types
| Name | Type | Description |
|---|---|---|
OgeOtpInputType | 'numeric' | 'alphanumeric' | 'alphabetic' | Which characters a cell accepts. |
OgeOtpInputCase | 'none' | 'upper' | 'lower' | Letter case applied to accepted letters. |
OgeOtpCompletedEvent | { value: string; event: Event | undefined } | Payload of completed. |
Keyboard | one Tab stop | Only the caret cell is tabbable. Typing fills and advances, Backspace clears and steps back, Delete closes the gap, ArrowLeft/ArrowRight (RTL-mirrored) and Home/End move; a cell past the first empty one hands the focus back to it. |
Autofill | autocomplete="one-time-code" | On the first cell, so iOS/Android SMS suggestions fill the whole code; a paste of a whole code always fills from the first cell. |
Messages | OgeInputsMessages | otpLabel (group name without a label) and otpCellLabel ({index} / {length}). |
OgeListBox
oge-list-boxProperties 30
OgeListBox
| Name | Type | Default | Description |
|---|---|---|---|
value | model<unknown> | null | The selection — one valueExpr result (or null) in single mode, an items-ordered array in multiple mode. Two-way. |
items | readonly TItem[] | [] | The options. |
displayExpr / valueExpr / disabledExpr | shared with OgeSelectBox | — | Field-name string or function expressions; disabled options are skipped by the keyboard and keep their state. |
groupBy | OgeSelectGroupExpr<TItem> | undefined | — | Groups the options under headers (first-seen group order); each group is a role="group" labelled by its header. |
selectionMode | OgeListBoxSelectionMode | 'single' | 'single' (selection follows focus) or 'multiple' (aria-multiselectable). |
showCheckBoxes | boolean | false | A check glyph on every option (multiple mode only). |
searchEnabled | boolean | false | A search field above the list that filters the options. |
searchExpr / searchMode | OgeSelectSearchExpr<TItem> / 'contains' | 'startswith' | — / 'contains' | Which text the search matches (default: the display text) and how. |
searchPlaceholder | string | undefined | — | Placeholder of the search field; undefined = the listBoxSearchPlaceholder message. |
height | number | string | undefined | — | Maximum list height — a px number or any CSS length; the list scrolls past it (default 280px). |
noDataText | string | undefined | — | Text while there are no (matching) options; undefined = the noDataText message. |
label | string | '' | Visible label above the list and its accessible name; without one the list is named by the listBoxLabel message. |
labelledBy | string | undefined | — | Id of an external element naming the list (overrides label) — what the transfer list uses for its titles. |
hint | string | undefined | — | Helper text under the list, hidden while an error shows. |
keyShortcuts | string | undefined | — | Shortcuts a host handles on the list, advertised as aria-keyshortcuts. |
allowReordering | boolean | false | Lets the user reorder the options: Alt+↑/↓ moves the active option, a pointer drag (touch: after a long press) drops it before / after another. The list shows the new order at once and announces it; persist the reordered payload's items — a new items array resets the order. Moves stay inside a group, pass rows a search hides, and never move a disabled option. |
itemTemplate | TemplateRef<OgeListBoxItemTemplateContext<TItem>> | undefined | — | Option content as a TemplateRef; wins over a projected [ogeListBoxItemTemplate]. The option keeps its role, state and check glyph. |
groupTemplate | TemplateRef<OgeListBoxGroupTemplateContext> | undefined | — | Group header content; wins over a projected [ogeListBoxGroupTemplate]. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 9
OgeListBox methods
| Name | Type | Description |
|---|---|---|
selectAll() / unselectAll() | void | Selects / deselects every enabled option (disabled options keep their state). |
scrollToItem(item: TItem): void | void | Makes the item the active option and scrolls it into view. |
search(text: string): void | void | Sets the search text programmatically; '' clears the filter. |
getVisibleItems() / getSelectedItems() | readonly TItem[] / TItem[] | The options currently shown (after the search) in display order / the selected items in items order. |
reorderItem(item, target, position?, cause?): boolean | boolean | Moves item before (default) / after target through the same cancelable path as the keys and the pointer; false when it cannot move or a reordering handler cancelled it. cause defaults to 'api' (the transfer list passes 'drag'). |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 12
OgeListBox events
| Name | Type | Description |
|---|---|---|
selectionChanged | OgeListBoxSelectionChangedEvent<TItem> | The selection changed — { value, previousValue, addedItems, removedItems, event }. |
itemClick | OgeListBoxItemClickEvent<TItem> | An enabled option was clicked — { item, index, event } (fires in read-only mode too). |
reordering | OgeListBoxReorderingEvent<TItem> | Cancelable pre-event of every reorder — { item, fromIndex, toIndex, cause, event, cancel }; indices into the whole items array. |
reordered | OgeListBoxReorderedEvent<TItem> | An option moved — { item, fromIndex, toIndex, cause, items, event }, after the announcement (listBoxReorderedAnnouncement). |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 6
List box types
| Name | Type | Description |
|---|---|---|
OgeListBoxSelectionMode | 'single' | 'multiple' | The selection model. |
OgeListBoxItemTemplate | [ogeListBoxItemTemplate] | Structural directive for the option content; context OgeListBoxItemTemplateContext = { $implicit: item, index, selected, active, disabled }. |
OgeListBoxGroupTemplate | [ogeListBoxGroupTemplate] | Structural directive for group headers; context OgeListBoxGroupTemplateContext = { $implicit: label, count }. |
OgeListBoxSelectionChangedEvent / OgeListBoxItemClickEvent / OgeListBoxReorderingEvent / OgeListBoxReorderedEvent | event payloads | See the events table. |
OgeListBoxReorderCause | 'keyboard' | 'drag' | 'api' | What started a reorder. |
Keyboard | APG listbox | One Tab stop (aria-activedescendant). ↑/↓, Home/End, PageUp/PageDown move the active option — in single mode the selection follows. Typing jumps by prefix (accent-insensitive; repeat a letter to cycle). Multiple: Space/Enter toggle, Shift+↑/↓ and Shift+Space extend from the anchor, Ctrl+Shift+Home/End select to an edge, Ctrl+A (⌘A) selects all — or none when all are selected. In the search field ↓ moves into the list. |
OgeTransferList
oge-transfer-listProperties 26
OgeTransferList
| Name | Type | Default | Description |
|---|---|---|---|
value | model<readonly unknown[]> | [] | The target side — the moved items’ valueExpr results in arrival order. Two-way. |
items | readonly TItem[] | [] | Every item; those not in value form the source list (items order). |
displayExpr / valueExpr / disabledExpr | shared with OgeSelectBox | — | Field-name string or function expressions; disabled items cannot be selected or moved. |
groupBy | OgeSelectGroupExpr<TItem> | undefined | — | Groups both lists’ options under headers. |
sourceTitle / targetTitle | string | undefined | — | List titles (and accessible names); undefined = the transferSourceTitle / transferTargetTitle messages. |
searchEnabled | boolean | false | A search field above each list. The buttons act on what a list shows: “move all” is enabled only while the filtered view holds a movable item, “move selected” only while a selected item is visible. |
searchExpr / searchMode | OgeSelectSearchExpr<TItem> / 'contains' | 'startswith' | — / 'contains' | Which text the search matches and how. |
showCheckBoxes | boolean | false | Check glyphs on the options of both lists. |
height | number | string | undefined | — | Maximum height of each list — px number or CSS length. |
noDataText | string | undefined | — | Text of an empty list. |
label | string | '' | Visible label above both lists; the role="group"’s accessible name. |
hint | string | undefined | — | Helper text under the lists, hidden while an error shows. |
itemTemplate / groupTemplate | TemplateRef | undefined | — | Option / group header content for both lists; win over projected [ogeListBoxItemTemplate] / [ogeListBoxGroupTemplate]. |
allowReordering | OgeTransferListReorderSides | false | Lets the user reorder a list — true both, 'source' / 'target' only that one. Alt+↑/↓ moves the active option; one drag reorders when dropped inside its own list and moves when dropped on the other. The target's order is the value's order (a reorder commits it); a reordered source keeps its order until items changes. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 6
OgeTransferList methods
| Name | Type | Description |
|---|---|---|
moveSelectedToTarget() / moveAllToTarget() | void | Moves the source selection / every shown, enabled source item to the target list. |
moveSelectedToSource() / moveAllToSource() | void | Moves the target selection / every shown, enabled target item back to the source list. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 12
OgeTransferList events
| Name | Type | Description |
|---|---|---|
moving | OgeTransferListMovingEvent<TItem> | Cancelable pre-event of every move — { items, values, from, to, cause, cancel }; cause is 'button' | 'keyboard' | 'drag'. |
moved | OgeTransferListMovedEvent<TItem> | Items changed sides — { items, values, from, to, cause, value }, after the commit and the live announcement. |
reordering | OgeTransferListReorderingEvent<TItem> | Cancelable pre-event of a reorder inside one list — { side, item, fromIndex, toIndex, cause, event, cancel }. |
reordered | OgeTransferListReorderedEvent<TItem> | An item moved inside one list — { side, item, fromIndex, toIndex, cause, items, value, event }; a target reorder has already committed the new value. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 6
Transfer list types
| Name | Type | Description |
|---|---|---|
OgeTransferListSide | 'source' | 'target' | One side of the transfer list. |
OgeTransferListMoveCause | 'button' | 'keyboard' | 'drag' | What triggered a move — all three run the same move path. |
OgeTransferListReorderSides | boolean | 'source' | 'target' | Which lists allowReordering opens. |
Keyboard | listbox + shortcuts | Every list box key on each list, plus Ctrl/⌘+→ (from the source) / Ctrl/⌘+← (from the target) to move the selection toward the other list — with Shift, everything shown. Visual arrows, mirrored in RTL, advertised with aria-keyshortcuts. |
Drag and drop | beginPointerDragDrop | Drag an option (or the selection it belongs to) onto the other list — mouse and pen at once, touch after a long press; Escape cancels. The drop runs the same move as the buttons. |
Announcements | OgeLiveAnnouncer | Every move is announced politely through the shared live announcer (transferMovedAnnouncement, an ICU plural). |
OgeSignaturePad
oge-signature-padProperties 24
OgeSignaturePad
| Name | Type | Default | Description |
|---|---|---|---|
value | model<string | null> | null | The signature as a data: URL in format — two-way. Writing a stored value back restores the pad’s own SVG export as strokes; any other image URL is shown (sanitized) until the next stroke replaces it. |
label | string | '' | Accessible name of the pad; falls back to the signatureLabel message. |
placeholder | string | undefined | — | Text on the empty pad; undefined = the signaturePlaceholder message (“Sign here”), an empty string hides it. |
format | OgeSignatureFormat | 'png' | Export format of value and of toDataUrl() without an argument. |
mode | model<OgeSignatureMode> | 'draw' | Draw with a pointer or type a name — two-way. |
allowTyping | boolean | true | Shows the Draw / Type switch — the keyboard-accessible alternative (WCAG 2.1.1). |
height | number | 160 | Surface height in px; the width follows the host (--oge-signature-pad-width, 420px). |
strokeColor | string | undefined | — | Ink colour; undefined = the --oge-signature-ink token (forced colors repaint it). |
backgroundColor | string | undefined | — | Background baked into the export; undefined = transparent. |
minWidth | number | 1 | Thinnest stroke width in px — reached at high pen speed. |
maxWidth | number | 3 | Thickest stroke width in px — reached when the pen moves slowly. |
fontFamily | string | script stack + 'cursive' | Font of a typed signature, on screen and in the export. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 9
OgeSignaturePad methods
| Name | Type | Description |
|---|---|---|
undo(): void | void | Removes the last stroke and re-exports the value. |
toDataUrl(format?): string | null | string | null | The signature as a data: URL (default: format); null when empty. |
toSvg(): string | null | string | null | The signature as an SVG document string; null when empty. |
setMode(mode): void | void | Switches between drawing and typing, re-exporting the value. |
isEmpty(): boolean | boolean | No signature (value === null). |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 10
OgeSignaturePad events
| Name | Type | Description |
|---|---|---|
strokeEnded | OgeSignatureStrokeEvent | A stroke was completed (pen up) and committed. |
modeChange | OgeSignatureMode | Implicit output of the mode model. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 6
Signature pad types
| Name | Type | Description |
|---|---|---|
OgeSignatureFormat | 'png' | 'svg' | Export format. PNG renders through a canvas (falling back to SVG where no 2D context exists, e.g. SSR or jsdom); SVG is built without the DOM and embeds the strokes in a <metadata> element, so the value restores an editable pad. |
OgeSignatureMode | 'draw' | 'type' | Pointer drawing, or the keyboard-accessible typed signature (a labelled text field rendered in fontFamily). |
OgeSignatureStroke | { points: readonly OgeSignaturePoint[] } | One pen-down → pen-up trace. |
OgeSignaturePoint | { x: number; y: number; t: number } | A sample in surface-relative coordinates (0..1 on both axes) with its time in ms — why a resized pad redraws exactly. |
OgeSignatureStrokeEvent | { stroke: OgeSignatureStroke; strokeCount: number; event: Event | undefined } | Payload of the stroke-ended event. |
Keyboard | buttons + text field | Draw / Type is a pressed-state button pair; Undo (also Ctrl+Z anywhere in the pad) and Clear are real buttons; Escape mid-stroke cancels the stroke. The surface is role="img" named “label, signed / not signed”. |
OgeMention
oge-mentionProperties 50
OgeMention
| Name | Type | Default | Description |
|---|---|---|---|
value | model<string> | '' | The text, mentions included as plain-text tokens — two-way. |
mentions | model<readonly OgeMentionToken<T>[]> | [] | The inserted mentions in text order — two-way, kept in step with every edit (a token edited away drops out). |
triggers | readonly OgeMentionTrigger<T>[] | undefined | — | Several trigger characters with their own items and expressions; overrides the single-trigger shorthand below. |
items | OgeMentionItemsSource<T> | [] | Shorthand single trigger: its suggestions — a list or a function of the query. |
trigger | string | '@' | Shorthand single trigger: its character. |
displayExpr | OgeSelectBoxDisplayExpr<T> | undefined | — | Shorthand: item → display text, also the inserted token text. |
valueExpr | OgeSelectBoxValueExpr<T> | undefined | — | Shorthand: item → the value reported in mentions (default: the item). |
searchExpr | OgeSelectBoxSearchExpr<T> | undefined | — | Shorthand: which text the local filter matches (default: the display text). |
searchMode | OgeSelectBoxSearchMode | 'contains' | Substring or prefix matching of local items. |
minSearchLength | number | 0 | Characters required after the trigger before suggestions show. |
maxSuggestions | number | 8 | Caps the suggestion list. |
allowSpaces | boolean | false | Lets a query run across spaces (@Ada Lo); line breaks always end it. |
insertSpace | boolean | true | Adds a space after the inserted token (unless one follows already). |
searchTimeout | number | undefined | — | Debounce (ms) before a query function is called; undefined = the config searchTimeoutMs (250). |
multiline | boolean | true | A text area (true) or a single-line combobox field. |
rows | number | 3 | Visible rows of the text area. |
maxLength | number | undefined | — | Native maxlength. |
spellcheck | boolean | true | Native spellcheck. |
dropdownMaxHeight | number | undefined | — | Suggestion list height cap; undefined = the CSS default (320px). |
itemTemplate | TemplateRef<OgeMentionItemTemplateContext<T>> | undefined | — | Custom suggestion row; an [ogeMentionItemTemplate] child wins. |
Common — field chrome (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label; placement follows labelMode. |
labelMode | OgeInputLabelMode | 'static' | Label placement: static / floating / hidden (aria-only) / outside. |
stylingMode | OgeInputStylingMode | 'outlined' | Container fill style. |
size | OgeInputSize | 'md' | Container height preset — 28/34/42px, the button scale. |
placeholder | string | '' | Native placeholder text. |
hint | string | undefined | — | Helper text in the subscript region (hidden while an error shows). |
tooltip | string | undefined | — | Native title attribute of the input element. |
subscriptSizing | OgeInputSubscriptSizing | 'fixed' | Whether the hint/error line reserves height, collapses, or is removed. |
fluid | boolean | false | Stretches the field to 100% width (default 240px via --oge-input-width). |
width | number | string | undefined | — | This field’s width — a number is px, a string any CSS length. Sets --oge-input-width on this host only; fluid still wins. |
showClearButton | boolean | false | Renders the clear (✕) button while the field has a value. |
showSuccessIcon | OgeInputShowSuccessIcon | false | Success icon when valid: false / on touch / always. |
id | string | undefined | — | Base for the generated element ids (input/label/hint/error/counter). |
tabIndex | number | 0 | Tab order of the native input. |
autofocus | boolean | false | Focuses the editor after its first render. |
selectOnFocus | boolean | false | Selects the whole text when the input receives focus. |
inputAttr | Record<string, string> | {} | Escape hatch: extra attributes rendered onto the native input (template-owned attributes are ignored). |
messages | Partial<OgeInputsMessages> | undefined | — | Per-instance overrides of user-facing strings. |
Common — state & forms (all editors)
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the editor. |
readonly | boolean | false | Focusable but not editable. (Contract name — not readOnly.) |
required | boolean | false | Marks the field required (label asterisk + validation). |
name | string | '' | Native name attribute. |
invalid | boolean | false | External invalid override — combined with forms state. |
pending | boolean | false | Async-validation indicator; a spinner shows in the rail while true. |
touched | boolean | false | External touched override (Signal Forms contract). |
dirty | boolean | false | External dirty override (Signal Forms contract). |
errors | readonly OgeFieldError[] | [] | Signal Forms validation errors (auto-bound by [formField]). |
errorText | string | undefined | — | Explicit error message — always wins over resolved messages. |
errorDisplay | OgeInputErrorDisplay | 'touched' | When resolved errors become visible. |
debounce | number | undefined | — | Commit delay in ms for value/forms updates; blur and Enter flush immediately. |
Methods 5
OgeMention methods
| Name | Type | Description |
|---|---|---|
close(): void | void | Closes the suggestion list. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
focus(): void | void | Moves keyboard focus to the native input. |
blur(): void | void | Blurs the native input. |
clear(): void | void | Clears the value (commits immediately), keeps focus in the field; no-op when disabled/readonly. |
reset(value?: T): void | void | Returns the field to pristine: sets value (default: empty), clears touched/dirty/parse errors, cancels pending commits. On a reactive-forms-bound editor resets the control itself. |
Events 11
OgeMention events
| Name | Type | Description |
|---|---|---|
mentionSelected | OgeMentionSelectedEvent<T> | A suggestion was inserted. |
mentionsChange | readonly OgeMentionToken<T>[] | Implicit output of the mentions model — after an insert and after an edit that shifted or dropped a mention. |
searchChanged | OgeMentionSearchChangedEvent | The query after a trigger changed — drive your own server-side suggestions from here. |
Common (all editors)
| Name | Type | Description |
|---|---|---|
valueCommitted | OgeInputValueCommittedEvent<T> | Every committed change with previousValue + originating DOM event (undefined for programmatic writes) — the reference onValueChanged shape. |
inputChange | OgeInputRawEvent | Raw text on every keystroke, regardless of commit policy. |
cleared | void | Value cleared via the clear button / clear(). |
enterKey | OgeInputKeyEvent | Enter pressed inside the editor (pending debounce is flushed first). |
focused | OgeInputFocusEvent | The editor received focus. |
blurred | OgeInputFocusEvent | The editor lost focus. |
touch | void | Signal Forms FormValueControl contract — emitted once per blur. |
valueChange | T | Implicit output of the value model. |
Types 8
Mention types
| Name | Type | Description |
|---|---|---|
OgeMentionTrigger<T> | { char: string; items: OgeMentionItemsSource<T>; displayExpr?; valueExpr?; searchExpr? } | One trigger character and the items it suggests. |
OgeMentionItemsSource<T> | readonly T[] | ((query: string) => readonly T[] | PromiseLike<readonly T[]>) | A list filtered locally by the query, or a function of the query (debounced by searchTimeout; stale answers are dropped) returning the filtered items. |
OgeMentionToken<T> | { trigger: string; item: T; value: unknown; text: string; start: number; end: number } | An inserted mention — the item, its valueExpr value, the inserted text and its [start, end) range. Tokens shift with edits before them and drop out when edited. |
OgeMentionSelectedEvent<T> | { token: OgeMentionToken<T>; item: T; event: Event | undefined } | Payload of the mention-selected event. |
OgeMentionSearchChangedEvent | { trigger: string; text: string } | Payload of the search-changed event. |
OgeMentionItemTemplate | directive | <ng-template ogeMentionItemTemplate let-item> child — a custom suggestion row; wins over itemTemplate. |
OgeMentionItemTemplateContext<T> | { $implicit: T; item: T; index: number; trigger: string; query: string; active: boolean } | Context of a custom suggestion row. |
Keyboard | APG combobox | ArrowDown/ArrowUp move the active suggestion, PageUp/PageDown jump to the ends, Enter or Tab insert, Escape closes until the next trigger. A trigger counts only at the start or after whitespace. The single-line field is role="combobox"; the text area keeps its textbox role (ARIA allows no combobox role there) with aria-autocomplete, aria-controls and aria-activedescendant. |
Inputs configuration
Methods 1
| Name | Type | Description |
|---|---|---|
provideOgeInputsConfig(config: OgeInputsConfigInput): Provider | Provider | Application- or component-scoped defaults; deep-merges messages over the defaults. |
Types 30
OgeInputsConfig
| Name | Type | Default | Description |
|---|---|---|---|
spinRepeatDelayMs | number | 400 | Delay before spin buttons start repeating. |
spinRepeatIntervalMs | number | 80 | Interval between spin repeats. |
copiedResetMs | number | 2000 | How long the copy button shows "copied". |
adaptiveMode | 'auto' | 'none' | 'none' | Default adaptiveMode of every popup editor (select box, tag box, autocomplete, tree select, date / date range / color box). 'none' keeps existing apps' anchored drop-downs; switch the whole family with 'auto'. |
adaptiveBreakpoint | number | 600 | Viewport width (px) below which 'auto' presents popups as bottom sheets / full-screen dialogs. |
dataPageSize | number | 30 | Rows a list editor asks its dataSource for per page (select box, tag box, autocomplete, multi-column combo box). |
messages | OgeInputsMessages | — | User-facing strings (see below). |
OgeInputsMessages
| Name | Type | Default | Description |
|---|---|---|---|
clearButton | string | 'Clear' | Aria label of the clear (✕) button. |
showPassword / hidePassword | string | 'Show password' / 'Hide password' | Reveal toggle aria labels. |
copyButton / copied | string | 'Copy to clipboard' / 'Copied' | Copy button aria label and transient confirmation. |
spinIncrement / spinDecrement | string | 'Increase value' / 'Decrease value' | Aria labels of the spin buttons. |
pending / valid | string | 'Validating' / 'Valid' | Screen-reader text next to the pending spinner / success icon. |
counter / counterNoMax | string | '{count}/{max}' / '{count}' | Visual counter patterns. |
counterAria / counterAriaNoMax | string | '{count} of {max} characters used' / '{count} characters entered' | Counter aria labels. |
requiredError | string | 'This field is required' | Resolved message for the required error kind. |
emailError | string | 'Enter a valid email address' | Resolved message for the email error kind. |
minError / maxError | string | 'Value must be at least {min}' / '…at most {max}' | Numeric bound errors. |
minLengthError / maxLengthError | string | 'Enter at least {requiredLength} characters' / 'Enter no more than…' | Length errors. |
patternError | string | 'The value has an invalid format' | Pattern mismatch. |
maskInvalidError | string | 'Complete the value in the required format' | Text box / masked text box: required mask slots are empty (also the mask Signal Forms error kind). maskInvalidMessage overrides it per editor. |
invalidNumberError | string | 'Enter a valid number' | Number box parse failure (reverts on blur). |
invalidError | string | 'Invalid value' | Fallback for unknown validation error kinds. |
moreTags | string | '+{count} more' | Overflow chip of maxDisplayedTags (tag box, tree select chips, multi-column combo box). Rendered by ogeMoreTagsText / ogeFormatMessage, so it may be an ICU plural ({count, plural, one {+# weiteres} other {+# weitere}}). |
selectedCount | string | '{count, plural, one {# selected} other {# selected}}' | Closed-field summary of a tag box or tree select in displayMode: 'count'; may be an ICU plural over count. |
maxSelectedItemsMessage | string | 'You can select up to {max} items' | Status shown once maxSelectedItems is reached. |
compareError | string | 'The values do not match' | Resolved message for the forms compare rule. |
nowButton | string | 'Now' | Date box footer button of showNowButton. |
presetsLabel / presetToday … presetLastYear | string | 'Quick ranges' / 'Today' … 'Last year' | Aria label of the date range box preset list, and the labels of the built-in ogeDateRangePresets (presetToday, presetYesterday, presetLast7Days, presetLast30Days, presetThisWeek, presetLastWeek, presetThisMonth, presetLastMonth, presetThisYear, presetLastYear). |
hourColumnLabel / minuteColumnLabel / secondColumnLabel / dayPeriodColumnLabel | string | 'Hours' / 'Minutes' / 'Seconds' / 'AM/PM' | Aria labels of the time picker columns (timeView: 'columns'). |
segmentDay / segmentMonth / segmentYear / segmentHour / segmentMinute / segmentSecond / segmentDayPeriod | string | 'dd' / 'mm' / 'yyyy' / 'hh' / 'mm' / 'ss' / '--' | Empty-segment placeholders of the masked date entry (useMaskBehavior) — translate them with the UI (TT.MM.JJJJ). |
OgeTextBoxHarness
Methods 12
Harness
| Name | Type | Description |
|---|---|---|
hostSelector | 'oge-text-box' | Static. The host selector the CDK loader matches — import from @oge-ui/inputs/testing; @angular/cdk is an optional peer only this entry needs. |
with(filters?: OgeInputHarnessFilters) | HarnessPredicate<OgeTextBoxHarness> | Static. Predicate for loader.getHarness(): selector, ancestor, label, value (string or RegExp) and disabled. |
Common (every input harness)
| Name | Type | Description |
|---|---|---|
getValue() | Promise<string> | The text the editor shows (the native input’s value). |
setValue(text: string) | Promise<void> | Replaces the text as a user would — clear, type, blur (the commit point). The date box commits with Enter instead. |
typeText(text: string) | Promise<void> | Types without clearing or committing (as-you-type behaviour). |
pressEnter() | Promise<void> | Presses Enter in the input. |
getLabel() | Promise<string> | The visible label without the required mark, or the input’s aria-label under labelMode="hidden". |
getPlaceholder() | Promise<string> | The input’s placeholder. |
isDisabled() / isReadonly() / isRequired() | Promise<boolean> | State from the host classes (oge-disabled, oge-input-readonly) and aria-required. |
isInvalid() | Promise<boolean> | Whether the error state shows (aria-invalid="true") — after errorDisplay allows it. |
getErrorText() / getHintText() | Promise<string> | The visible error message or hint, '' when none. |
focus() / blur() / isFocused() | Promise<void> | Promise<boolean> | Focus control of the native input; blur is the commit point. |
Types 1
| Name | Type | Description |
|---|---|---|
OgeInputHarnessFilters | BaseHarnessFilters & { label?, value?: string | RegExp; disabled?: boolean } | Options of every input harness’s with(). |
OgeNumberBoxHarness
Methods 13
Harness
| Name | Type | Description |
|---|---|---|
hostSelector | 'oge-number-box' | Static. The host selector the CDK loader matches — import from @oge-ui/inputs/testing; @angular/cdk is an optional peer only this entry needs. |
with(filters?: OgeInputHarnessFilters) | HarnessPredicate<OgeNumberBoxHarness> | Static. Predicate for loader.getHarness(): selector, ancestor, label, value (string or RegExp) and disabled. |
Spin
| Name | Type | Description |
|---|---|---|
increment() / decrement() | Promise<void> | One step up / down with ArrowUp / ArrowDown, which commits immediately. getValue() is the formatted text — pin locale in specs. |
Common (every input harness)
| Name | Type | Description |
|---|---|---|
getValue() | Promise<string> | The text the editor shows (the native input’s value). |
setValue(text: string) | Promise<void> | Replaces the text as a user would — clear, type, blur (the commit point). The date box commits with Enter instead. |
typeText(text: string) | Promise<void> | Types without clearing or committing (as-you-type behaviour). |
pressEnter() | Promise<void> | Presses Enter in the input. |
getLabel() | Promise<string> | The visible label without the required mark, or the input’s aria-label under labelMode="hidden". |
getPlaceholder() | Promise<string> | The input’s placeholder. |
isDisabled() / isReadonly() / isRequired() | Promise<boolean> | State from the host classes (oge-disabled, oge-input-readonly) and aria-required. |
isInvalid() | Promise<boolean> | Whether the error state shows (aria-invalid="true") — after errorDisplay allows it. |
getErrorText() / getHintText() | Promise<string> | The visible error message or hint, '' when none. |
focus() / blur() / isFocused() | Promise<void> | Promise<boolean> | Focus control of the native input; blur is the commit point. |
Types 1
| Name | Type | Description |
|---|---|---|
OgeInputHarnessFilters | BaseHarnessFilters & { label?, value?: string | RegExp; disabled?: boolean } | Options of every input harness’s with(). |
OgeSelectBoxHarness
Methods 18
Harness
| Name | Type | Description |
|---|---|---|
hostSelector | 'oge-select-box' | Static. The host selector the CDK loader matches — import from @oge-ui/inputs/testing; @angular/cdk is an optional peer only this entry needs. |
with(filters?: OgeInputHarnessFilters) | HarnessPredicate<OgeSelectBoxHarness> | Static. Predicate for loader.getHarness(): selector, ancestor, label, value (string or RegExp) and disabled. |
Popup
| Name | Type | Description |
|---|---|---|
isOpen() | Promise<boolean> | Whether the popup is open (aria-expanded="true"). |
open() / close() | Promise<void> | Opens the popup with a click on the field / closes it with Escape; each is a no-op when already in that state. |
Options
| Name | Type | Description |
|---|---|---|
getOptions(filter?: OgeSelectOptionFilter) | Promise<string[]> | Texts of the listed options (opens the popup); the listbox is found through aria-controls from the document root. |
selectOption(text: string | RegExp) | Promise<void> | Opens the popup and clicks the first matching option; throws with the option list when none matches. |
getSelectedOptionText() | Promise<string | null> | Text of the aria-selected option of the open list. |
search(text: string) | Promise<void> | Types into the search field (searchEnabled). |
Common (every input harness)
| Name | Type | Description |
|---|---|---|
getValue() | Promise<string> | The text the editor shows (the native input’s value). |
setValue(text: string) | Promise<void> | Replaces the text as a user would — clear, type, blur (the commit point). The date box commits with Enter instead. |
typeText(text: string) | Promise<void> | Types without clearing or committing (as-you-type behaviour). |
pressEnter() | Promise<void> | Presses Enter in the input. |
getLabel() | Promise<string> | The visible label without the required mark, or the input’s aria-label under labelMode="hidden". |
getPlaceholder() | Promise<string> | The input’s placeholder. |
isDisabled() / isReadonly() / isRequired() | Promise<boolean> | State from the host classes (oge-disabled, oge-input-readonly) and aria-required. |
isInvalid() | Promise<boolean> | Whether the error state shows (aria-invalid="true") — after errorDisplay allows it. |
getErrorText() / getHintText() | Promise<string> | The visible error message or hint, '' when none. |
focus() / blur() / isFocused() | Promise<void> | Promise<boolean> | Focus control of the native input; blur is the commit point. |
Types 2
| Name | Type | Description |
|---|---|---|
OgeInputHarnessFilters | BaseHarnessFilters & { label?, value?: string | RegExp; disabled?: boolean } | Options of every input harness’s with(). |
| Name | Type | Description |
|---|---|---|
OgeSelectOptionFilter | { text?: string | RegExp } | Filter of getOptions(). |
OgeDateBoxHarness
Methods 17
Harness
| Name | Type | Description |
|---|---|---|
hostSelector | 'oge-date-box' | Static. The host selector the CDK loader matches — import from @oge-ui/inputs/testing; @angular/cdk is an optional peer only this entry needs. |
with(filters?: OgeInputHarnessFilters) | HarnessPredicate<OgeDateBoxHarness> | Static. Predicate for loader.getHarness(): selector, ancestor, label, value (string or RegExp) and disabled. |
Popup
| Name | Type | Description |
|---|---|---|
isOpen() | Promise<boolean> | Whether the picker is open (aria-expanded="true"). |
open() / close() | Promise<void> | Opens the picker with a click on the field / closes it with Escape; each is a no-op when already in that state. |
Calendar
| Name | Type | Description |
|---|---|---|
getCalendarTitle() | Promise<string> | The heading of the month on show ("March 2026"). |
nextMonth() / previousMonth() | Promise<void> | Moves the picker one month. |
selectDay(day: number) | Promise<void> | Opens the picker and clicks a day of the month on show (adjacent months’ days skipped); a date-only box commits and closes. |
Common (every input harness)
| Name | Type | Description |
|---|---|---|
getValue() | Promise<string> | The text the editor shows (the native input’s value). |
setValue(text: string) | Promise<void> | Replaces the text as a user would — clear, type, blur (the commit point). The date box commits with Enter instead. |
typeText(text: string) | Promise<void> | Types without clearing or committing (as-you-type behaviour). |
pressEnter() | Promise<void> | Presses Enter in the input. |
getLabel() | Promise<string> | The visible label without the required mark, or the input’s aria-label under labelMode="hidden". |
getPlaceholder() | Promise<string> | The input’s placeholder. |
isDisabled() / isReadonly() / isRequired() | Promise<boolean> | State from the host classes (oge-disabled, oge-input-readonly) and aria-required. |
isInvalid() | Promise<boolean> | Whether the error state shows (aria-invalid="true") — after errorDisplay allows it. |
getErrorText() / getHintText() | Promise<string> | The visible error message or hint, '' when none. |
focus() / blur() / isFocused() | Promise<void> | Promise<boolean> | Focus control of the native input; blur is the commit point. |
Types 1
| Name | Type | Description |
|---|---|---|
OgeInputHarnessFilters | BaseHarnessFilters & { label?, value?: string | RegExp; disabled?: boolean } | Options of every input harness’s with(). |
Notes
- All editors implement both classic
ControlValueAccessorand Signal Forms'FormValueControl— thereadonly/errors/touchnames are fixed by that contract. (valueCommitted)is the referenceonValueChangedequivalent; nativekeydown/paste/cutbubble from the inner input and can be bound on the host element directly.- The suffix rail order is a contract: prefix · input · pending⊻success · copy · reveal · clear · spin · suffix.