Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImageController

How to use

``` javascript const target = { image1: "https://path/to/image.png", image2: "https://path/to/image" }

// Automatically detect extension group.add('image1', target) // Automatically detect extension

// Force image type group.add('image2', target, { type: 'image' })


For more information about options or events see <a href="BaseController.html">BaseController</a>

Hierarchy

Index

Constructors

Properties

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