deploy: 464314e219
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# ComboBox
|
||||
_This is the ComboBox class. It extends the dropdown functionality with editable text input,_
|
||||
_allowing users to either select from a list or type their own custom text._
|
||||
_A hybrid input element that combines a text input field with a dropdown list. Users can either type directly or select from predefined options. _
|
||||
_Supports auto-completion, custom styling, and both single and multi-selection modes._
|
||||
|
||||
Extends: `DropDown`
|
||||
|
||||
@@ -8,16 +8,16 @@ Extends: `DropDown`
|
||||
|
||||
|Property|Type|Default|Description|
|
||||
|---|---|---|---|
|
||||
|editable|boolean|true|Whether the ComboBox allows text input|
|
||||
|text|string|""|The current text content of the ComboBox|
|
||||
|cursorPos|number|1|The current cursor position in the text|
|
||||
|viewOffset|number|0|The horizontal scroll offset for viewing long text|
|
||||
|placeholder|string|"..."|Text to display when input is empty|
|
||||
|placeholderColor|color|gray|Color of the placeholder text|
|
||||
|focusedBackground|color|blue|Background color when ComboBox is focused|
|
||||
|focusedForeground|color|white|Foreground color when ComboBox is focused |
|
||||
|autoComplete|boolean|false|Whether to enable auto-complete filtering when typing|
|
||||
|manuallyOpened|boolean|false|Whether the dropdown was manually opened (not by auto-complete)|
|
||||
|editable|boolean|true|Enables direct text input in the field|
|
||||
|text|string|""|The current text value of the input field|
|
||||
|cursorPos|number|1|Current cursor position in the text input|
|
||||
|viewOffset|number|0|Horizontal scroll position for viewing long text|
|
||||
|placeholder|string|"..."|Text shown when the input is empty|
|
||||
|placeholderColor|color|gray|Color used for placeholder text|
|
||||
|focusedBackground|color|blue|Background color when input is focused|
|
||||
|focusedForeground|color|white|Text color when input is focused|
|
||||
|autoComplete|boolean|false|Enables filtering dropdown items while typing|
|
||||
|manuallyOpened|boolean|false|Indicates if dropdown was opened by user action|
|
||||
|
||||
## Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user