[]
DsPdfJS API / ChoiceFieldProperties
ChoiceFieldProperties =
FieldBaseProperties&object
Defines common properties for ComboBoxFieldProperties and ListBoxFieldProperties.
optionalcommitOnSelChange:boolean
Indicating whether the new value is committed as soon as a selection is made with the pointing device. This option enables applications to perform an action once a selection is made, without requiring the user to exit the field. If false, the new value is not committed until the user exits the field.
optionaldefaultSelectedIndex:number
The index of item selected by default. Note, if both FieldBaseProperties#value and 'defaultSelectedIndex' are specified then 'defaultSelectedIndex' preffered.
optionalitems: (ChoiceFieldItemProperties|string)[]
The list of items displayed in field.
optionalrect:Rect
Defines the position and dimensions of the field on the page using a bounding rectangle.
Note: If a widget is specified via the 'widget' property, its 'rect' value takes precedence and will override this rectangle definition.
optionalselectedIndex:number
The index of selected item. Note, if both FieldBaseProperties#value and 'selectedIndex' are specified then 'selectedIndex' preffered.
optionalsort:boolean
Indicating whether the field's option items should be sorted alphabetically. This flag is intended for use by form authoring tools, not by PDF viewer applications. Viewers should simply display the options in the order in which they occur in the Opt array
optionalspellCheck:boolean
Indicating whether the text entered in the field is spell-checked.
optionalwidget:WidgetAnnotation|WidgetProperties
The widget annotation defining view properties of the checkbox field.