TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

Interface: IWidgetOptionParam

Provides advanced settings for options.

Hierarchy

  • IOption

    IWidgetOptionParam

Index

Properties

Methods

Properties

description

description: string

Inherited from void


hidden

hidden: boolean

If true, hides this option.


id

id: number

Inherited from void


onAvailableOptionValueChange

onAvailableOptionValueChange: IEvent‹IOption, IOptionValue[]›

Inherited from void

Available option values change event


Optional onChange

onChange? : Function | Function[]

A single function or an array of functions that will be executed when the option value is changed.


onOptionValueChange

onOptionValueChange: IEvent‹IOption, IOptionValue[]›

Inherited from void

Option value change event


orderIndex

orderIndex: number

The order index.


prompt

prompt: string

Inherited from void


props

props: any

Inherited from void


required

required: boolean

Inherited from void


subType

subType: string

Inherited from void


title

title: string

Inherited from void


type

type: string

Inherited from void


values

values: PointedArray‹IWidgetOptionValue

Overrides void

the option values as defined in the ecommerce-driver.

Methods

clone

clone(): IInitiable

Inherited from void

Returns:IInitiable


init

init(model: any): void

Inherited from void

Parameters:

Name Type
model any

Returns:void


matchesModel

matchesModel(model: any): boolean

Inherited from void

Parameters:

Name Type
model any

Returns:boolean


matchesPartial

matchesPartial(model: Partial‹IInitiable›): boolean

Inherited from void

Parameters:

Name Type
model Partial‹IInitiable›

Returns:boolean


mergeWithModel

mergeWithModel(other: any): IInitiable

Inherited from void

Parameters:

Name Type
other any

Returns:IInitiable


mergeWithPartial

mergeWithPartial(other: Partial‹IInitiable›): IInitiable

Inherited from void

Parameters:

Name Type
other Partial‹IInitiable›

Returns:IInitiable


updateAvailableOptionValues

updateAvailableOptionValues(availableValues: IOptionValue[]): void

Inherited from void

Update available option values

Parameters:

Name Type
availableValues IOptionValue[]

Returns:void


updateOptionValue

updateOptionValue(values: Array‹IOptionValue | string›): void

Inherited from void

Update option selected value

Parameters:

Name Type
values Array‹IOptionValue | string›

Returns:void


validateModel

validateModel(model: any): boolean

Inherited from void

Parameters:

Name Type
model any

Returns:boolean