aspnetcore-js-devexpress-dot-richedit-866af36c.md
Declares ribbon select box item settings.
export interface RibbonSelectBoxItemOptions
Specifies whether the item accepts custom values.
acceptCustomValue?: boolean
| Type | Description |
|---|---|
| boolean |
true to accept custom values; otherwise, false.
|
Set the acceptCustomValue property to true to allow a user to add new values to the select box. Note that in this case, you should implement the onCustomItemCreating handler to create a new data source entry.
Specifies whether an item separator should be displayed before the current item.
beginGroup?: boolean
| Type | Description |
|---|---|
| boolean |
true to display a separator before the item; otherwise, false.
|
Specifies the data field whose values should be displayed.
displayExpr?: string
| Type | Description |
|---|---|
| string |
The name of the data field.
|
Specifies a function that is executed when a user adds a custom item.
onCustomItemCreating?: any
| Type | Description |
|---|---|
| any |
A function that creates a new data source entry.
|
When the acceptCustomValue property is set to true , a user is allowed to add new values to the select box. Write the onCustomItemCreating function code to create a new data source entry.
Specifies the text displayed by the item when its value is empty.
placeholder?: string
| Type | Description |
|---|---|
| string |
The placeholder text.
|
Specifies whether to display the Clear button in the item.
showClearButton?: boolean
| Type | Description |
|---|---|
| boolean |
true to display the Clear button; otherwise, false.
|
Specifies options of the text displayed next to the item.
textOptions?: RibbonItemTextOptions
| Type | Description |
|---|---|
| RibbonItemTextOptions |
An object that contains text options.
|
Specifies the currently selected value.
value?: any
| Type | Description |
|---|---|
| any |
The currently selected value.
|
Specifies the data field that provides values for the editor items.
valueExpr?: string
| Type | Description |
|---|---|
| string |
The name of the data field.
|
Specifies the data type of the selected value.
valueType?: string
| Type | Description |
|---|---|
| string |
The selected value type.
|
Specifies the item width.
width?: any
| Type | Description |
|---|---|
| any |
The item width.
|