mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(docs-infra): add missing readonly property to combobox guide
PR angular/components#33364 restored the `readonly` property for the combobox, but the documentation was not updated to reflect this change. This commit adds the missing `readonly` input and its description to the Inputs / Model table in the combobox guide.
This commit is contained in:
committed by
Kirill Cherkashin
parent
e77a8a0c7a
commit
69a00043a4
@@ -243,15 +243,16 @@ Coordinates an interactive trigger element (such as a text input, button, or div
|
||||
|
||||
#### Inputs / Model
|
||||
|
||||
| Property | Type | Default | Description |
|
||||
| ------------------ | ---------------------- | ------- | ------------------------------------------------------------------- |
|
||||
| `value` | `ModelSignal<string>` | `''` | Two-way bindable text value of the combobox |
|
||||
| `expanded` | `ModelSignal<boolean>` | `false` | Two-way bindable open/closed expanded state of the popup |
|
||||
| `disabled` | `boolean` | `false` | Disables the combobox trigger element |
|
||||
| `softDisabled` | `boolean` | `true` | Disables interaction while keeping the element keyboard focusable |
|
||||
| `alwaysExpanded` | `boolean` | `false` | Forces the popup to always remain open |
|
||||
| `inlineSuggestion` | `string \| undefined` | - | Sets an inline suggestion to be highlighted at the end of the input |
|
||||
| `tabIndex` | `number \| undefined` | - | Tabindex of the combobox element (aliased to `tabindex`) |
|
||||
| Property | Type | Default | Description |
|
||||
| ------------------ | ---------------------- | ------- | -------------------------------------------------------------------------------------------------------------------- |
|
||||
| `value` | `ModelSignal<string>` | `''` | Two-way bindable text value of the combobox |
|
||||
| `expanded` | `ModelSignal<boolean>` | `false` | Two-way bindable open/closed expanded state of the popup |
|
||||
| `disabled` | `boolean` | `false` | Disables the combobox trigger element |
|
||||
| `softDisabled` | `boolean` | `true` | Disables interaction while keeping the element keyboard focusable |
|
||||
| `readonly` | `boolean` | `false` | Makes the combobox read-only. Prevents the user from changing the value while keeping the element keyboard focusable |
|
||||
| `alwaysExpanded` | `boolean` | `false` | Forces the popup to always remain open |
|
||||
| `inlineSuggestion` | `string \| undefined` | - | Sets an inline suggestion to be highlighted at the end of the input |
|
||||
| `tabIndex` | `number \| undefined` | - | Tabindex of the combobox element (aliased to `tabindex`) |
|
||||
|
||||
All keyboard events, focus coordination, and ARIA state properties (including `role="combobox"`, `aria-autocomplete`, and `aria-expanded`) are handled automatically on the host element.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user