[]
        
(Showing Draft Content)

ComboBoxFieldProperties

DsPdfJS API v9.1.0


DsPdfJS API / ComboBoxFieldProperties

Type Alias: ComboBoxFieldProperties

ComboBoxFieldProperties = ChoiceFieldProperties & object

Defines properties of a ComboBoxField.

Type Declaration

defaultText?

optional defaultText: string

The default value of this ComboBoxField as a string.

The behavior varies based on the 'editable' property:

  • When 'editable' is false: returns the text of the selected item from the 'items' collection
  • When 'editable' is true: allows getting/setting any custom string value, regardless of the 'items' collection

defaultValue?

optional defaultValue: number

The default value of ComboBoxField, value is specified as index of selected item.

editable?

optional editable: boolean

Indicating whether the combo box includes an editable text box as well as a drop-down list.

text?

optional text: string

The string value of this ComboBoxField.

The behavior varies based on the 'editable' property:

  • When 'editable' is false: returns the text of the selected item from the 'items' collection
  • When 'editable' is true: allows getting/setting any custom string value, regardless of the 'items' collection

type

type: "combobox"

value?

optional value: number

The value of ComboBoxField, value is specified as index of selected item.