Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ListDef<T>

This will create editable list-box control.

Type parameters

Hierarchy

Indexable

[key: string]: any

This will create editable list-box control.

Index

Properties

Optional add

Callback that will be called when "add item" link is clicked.

Optional addNewItemsToBeginning

addNewItemsToBeginning: undefined | false | true

Optional afterInit

Optional attr

attr: IDictionary<string>

Object defining html attributes for controls root element.

Optional click

Callback that will be called when control is clicked.

Optional css

css: JQueryCssProperties

Object defining css styles for controls root element.

Optional editable

editable: undefined | false | true

If true will be editable. (default: false)

Optional enabled

enabled: undefined | false | true

If true control will be enabled if false control will be disabled (inactive).

Optional fixedWidth

fixedWidth: undefined | number

Optional id

id: undefined | string

Reference id of the control, it will be used to reference this control in the code throuth FieldsIndex objects.

Optional ignore

ignore: undefined | false | true

If true this control definition will be ignored and control will not be initiated.

Optional init

Callback that will be called when control is initialised.

Optional itemType

itemType: undefined | object

Reference to item class (constructor that creates items of desired class).

The item class must extend interface Serializable.

returns

Optional listHeight

listHeight: undefined | number

List box height in pixels.

Optional newItemButtonText

newItemButtonText: undefined | string

Optional on

Optional remove

Optional select

Callback that will be called when list item is selected.

Optional selectNone

Optional sortable

sortable: undefined | false | true

Optional styleClass

styleClass: undefined | string

Style class to add on root element of the control.

type

type: "List" | object

Optional visible

visible: undefined | false | true

Set initial visibility of control. (default: true)