跳到主要内容

interface_ui.IFieldPicker

interface/ui.IFieldPicker

Properties

allowedTypes

Optional allowedTypes: FieldType[]

An array indicating which field types can be selected.


viewId

viewId: undefined | string

The corresponding view ID, after specifying the view, the order of the options in the field selector will be in the order of the fields in that view, and the fields hidden by that view will also appear in the options.


fieldId

Optional fieldId: string

The selected field ID.


placeholder

Optional placeholder: string

The placeholder text when no field is selected. . Defaults to 'Please pick'


disabled

Optional disabled: boolean

If set to true, the user cannot interact with the select.


datasheet

Optional datasheet: Datasheet

The parent datasheet model to select fields from. If null or undefined, the picker default datasheet associated with the widget.

Methods

onChange

Optional onChange(option): void

A function to be called when the selected field changes.

Parameters

NameType
optionIOption

Returns

void