Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SelectController

How to use

const target = { property: 1 }
group.add('property', target, {
choices: [1, 2, { value: 3, label: "Default" }]
})

For more information about options or events see BaseController

Hierarchy

Index

Constructors

Properties

choices: SelectControllerChoice[] = []
listen: boolean = false

If true, the controller value will be updated automatically if target object is modified. Carefull: heavy use may reduce performance

group.add('someProperty', target, { listen: true })
disabled: boolean = false

If true, the controller will not be editable

name: string

Display name of a controller, defaultly equal to property.

group.add('someProperty', target, { name: 'Custom display name' })
property: string

property controlled in the target object

target: Object

source object in which the property key is defined

parent: BaseGroup

Methods

  • forceUpdate(): void
  • Manually update controller value in the form if target has changed

    Returns void

  • destroy(): void
  • Delete the controller

    Returns void

  • add(property: string, target?: Object, params?: any): void
  • Add a controller in the same Group of current controller

    Parameters

    • property: string
    • target: Object = undefined
    • params: any = undefined

    Returns void

  • valueOf(): any

Generated using TypeDoc