Button

Api-interface icon interface

The button interface. Implemented by, among others, ButtonView, SplitButtonView and DropdownButtonView.

Properties

Events

  • Chevron-right icon

    change:ariaLabel( eventInfo, name, value, oldValue )

    Fired when the ariaLabel property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (ariaLabel).

    value : string

    New value of the ariaLabel property with given key or null, if operation should remove property.

    oldValue : string

    Old value of the ariaLabel property with given key or null, if property was not set before.

  • Chevron-right icon

    change:ariaLabelledBy( eventInfo, name, value, oldValue )

    Fired when the ariaLabelledBy property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (ariaLabelledBy).

    value : string

    New value of the ariaLabelledBy property with given key or null, if operation should remove property.

    oldValue : string

    Old value of the ariaLabelledBy property with given key or null, if property was not set before.

  • Chevron-right icon

    change:class( eventInfo, name, value, oldValue )

    Fired when the class property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (class).

    value : undefined | string

    New value of the class property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the class property with given key or null, if property was not set before.

  • Chevron-right icon

    change:icon( eventInfo, name, value, oldValue )

    Fired when the icon property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (icon).

    value : undefined | string

    New value of the icon property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the icon property with given key or null, if property was not set before.

  • Chevron-right icon

    change:isEnabled( eventInfo, name, value, oldValue )

    Fired when the isEnabled property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (isEnabled).

    value : boolean

    New value of the isEnabled property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the isEnabled property with given key or null, if property was not set before.

  • Chevron-right icon

    change:isOn( eventInfo, name, value, oldValue )

    Fired when the isOn property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (isOn).

    value : boolean

    New value of the isOn property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the isOn property with given key or null, if property was not set before.

  • Chevron-right icon

    change:isToggleable( eventInfo, name, value, oldValue )

    Fired when the isToggleable property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (isToggleable).

    value : boolean

    New value of the isToggleable property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the isToggleable property with given key or null, if property was not set before.

  • Chevron-right icon

    change:isVisible( eventInfo, name, value, oldValue )

    Fired when the isVisible property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (isVisible).

    value : boolean

    New value of the isVisible property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the isVisible property with given key or null, if property was not set before.

  • Chevron-right icon

    change:keystroke( eventInfo, name, value, oldValue )

    Fired when the keystroke property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (keystroke).

    value : undefined | string

    New value of the keystroke property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the keystroke property with given key or null, if property was not set before.

  • Chevron-right icon

    change:label( eventInfo, name, value, oldValue )

    Fired when the label property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (label).

    value : undefined | string

    New value of the label property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the label property with given key or null, if property was not set before.

  • Chevron-right icon

    change:labelStyle( eventInfo, name, value, oldValue )

    Fired when the labelStyle property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (labelStyle).

    value : undefined | string

    New value of the labelStyle property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the labelStyle property with given key or null, if property was not set before.

  • Chevron-right icon

    change:role( eventInfo, name, value, oldValue )

    Fired when the role property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (role).

    value : string

    New value of the role property with given key or null, if operation should remove property.

    oldValue : string

    Old value of the role property with given key or null, if property was not set before.

  • Chevron-right icon

    change:tabindex( eventInfo, name, value, oldValue )

    Fired when the tabindex property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (tabindex).

    value : number

    New value of the tabindex property with given key or null, if operation should remove property.

    oldValue : number

    Old value of the tabindex property with given key or null, if property was not set before.

  • Chevron-right icon

    change:tooltip( eventInfo, name, value, oldValue )

    Fired when the tooltip property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (tooltip).

    value : string | boolean | ( label: string, keystroke: undefined | string ) => string

    New value of the tooltip property with given key or null, if operation should remove property.

    oldValue : string | boolean | ( label: string, keystroke: undefined | string ) => string

    Old value of the tooltip property with given key or null, if property was not set before.

  • Chevron-right icon

    change:tooltipPosition( eventInfo, name, value, oldValue )

    Fired when the tooltipPosition property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (tooltipPosition).

    value : 'e' | 's' | 'n' | 'w' | 'sw' | 'se'

    New value of the tooltipPosition property with given key or null, if operation should remove property.

    oldValue : 'e' | 's' | 'n' | 'w' | 'sw' | 'se'

    Old value of the tooltipPosition property with given key or null, if property was not set before.

  • Chevron-right icon

    change:type( eventInfo, name, value, oldValue )

    Fired when the type property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (type).

    value : 'button' | 'menu' | 'reset' | 'submit'

    New value of the type property with given key or null, if operation should remove property.

    oldValue : 'button' | 'menu' | 'reset' | 'submit'

    Old value of the type property with given key or null, if property was not set before.

  • Chevron-right icon

    change:withKeystroke( eventInfo, name, value, oldValue )

    Fired when the withKeystroke property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (withKeystroke).

    value : boolean

    New value of the withKeystroke property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the withKeystroke property with given key or null, if property was not set before.

  • Chevron-right icon

    change:withText( eventInfo, name, value, oldValue )

    Fired when the withText property changed value.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (withText).

    value : boolean

    New value of the withText property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the withText property with given key or null, if property was not set before.

  • Chevron-right icon

    execute( eventInfo )

    Fired when the button view is clicked. It won't be fired when the button isEnabled is false.

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

  • Chevron-right icon

    set:ariaLabel( eventInfo, name, value, oldValue )

    Fired when the ariaLabel property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (ariaLabel).

    value : string

    New value of the ariaLabel property with given key or null, if operation should remove property.

    oldValue : string

    Old value of the ariaLabel property with given key or null, if property was not set before.

  • Chevron-right icon

    set:ariaLabelledBy( eventInfo, name, value, oldValue )

    Fired when the ariaLabelledBy property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (ariaLabelledBy).

    value : string

    New value of the ariaLabelledBy property with given key or null, if operation should remove property.

    oldValue : string

    Old value of the ariaLabelledBy property with given key or null, if property was not set before.

  • Chevron-right icon

    set:class( eventInfo, name, value, oldValue )

    Fired when the class property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (class).

    value : undefined | string

    New value of the class property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the class property with given key or null, if property was not set before.

  • Chevron-right icon

    set:icon( eventInfo, name, value, oldValue )

    Fired when the icon property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (icon).

    value : undefined | string

    New value of the icon property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the icon property with given key or null, if property was not set before.

  • Chevron-right icon

    set:isEnabled( eventInfo, name, value, oldValue )

    Fired when the isEnabled property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (isEnabled).

    value : boolean

    New value of the isEnabled property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the isEnabled property with given key or null, if property was not set before.

  • Chevron-right icon

    set:isOn( eventInfo, name, value, oldValue )

    Fired when the isOn property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (isOn).

    value : boolean

    New value of the isOn property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the isOn property with given key or null, if property was not set before.

  • Chevron-right icon

    set:isToggleable( eventInfo, name, value, oldValue )

    Fired when the isToggleable property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (isToggleable).

    value : boolean

    New value of the isToggleable property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the isToggleable property with given key or null, if property was not set before.

  • Chevron-right icon

    set:isVisible( eventInfo, name, value, oldValue )

    Fired when the isVisible property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (isVisible).

    value : boolean

    New value of the isVisible property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the isVisible property with given key or null, if property was not set before.

  • Chevron-right icon

    set:keystroke( eventInfo, name, value, oldValue )

    Fired when the keystroke property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (keystroke).

    value : undefined | string

    New value of the keystroke property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the keystroke property with given key or null, if property was not set before.

  • Chevron-right icon

    set:label( eventInfo, name, value, oldValue )

    Fired when the label property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (label).

    value : undefined | string

    New value of the label property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the label property with given key or null, if property was not set before.

  • Chevron-right icon

    set:labelStyle( eventInfo, name, value, oldValue )

    Fired when the labelStyle property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (labelStyle).

    value : undefined | string

    New value of the labelStyle property with given key or null, if operation should remove property.

    oldValue : undefined | string

    Old value of the labelStyle property with given key or null, if property was not set before.

  • Chevron-right icon

    set:role( eventInfo, name, value, oldValue )

    Fired when the role property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (role).

    value : string

    New value of the role property with given key or null, if operation should remove property.

    oldValue : string

    Old value of the role property with given key or null, if property was not set before.

  • Chevron-right icon

    set:tabindex( eventInfo, name, value, oldValue )

    Fired when the tabindex property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (tabindex).

    value : number

    New value of the tabindex property with given key or null, if operation should remove property.

    oldValue : number

    Old value of the tabindex property with given key or null, if property was not set before.

  • Chevron-right icon

    set:tooltip( eventInfo, name, value, oldValue )

    Fired when the tooltip property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (tooltip).

    value : string | boolean | ( label: string, keystroke: undefined | string ) => string

    New value of the tooltip property with given key or null, if operation should remove property.

    oldValue : string | boolean | ( label: string, keystroke: undefined | string ) => string

    Old value of the tooltip property with given key or null, if property was not set before.

  • Chevron-right icon

    set:tooltipPosition( eventInfo, name, value, oldValue )

    Fired when the tooltipPosition property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (tooltipPosition).

    value : 'e' | 's' | 'n' | 'w' | 'sw' | 'se'

    New value of the tooltipPosition property with given key or null, if operation should remove property.

    oldValue : 'e' | 's' | 'n' | 'w' | 'sw' | 'se'

    Old value of the tooltipPosition property with given key or null, if property was not set before.

  • Chevron-right icon

    set:type( eventInfo, name, value, oldValue )

    Fired when the type property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (type).

    value : 'button' | 'menu' | 'reset' | 'submit'

    New value of the type property with given key or null, if operation should remove property.

    oldValue : 'button' | 'menu' | 'reset' | 'submit'

    Old value of the type property with given key or null, if property was not set before.

  • Chevron-right icon

    set:withKeystroke( eventInfo, name, value, oldValue )

    Fired when the withKeystroke property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (withKeystroke).

    value : boolean

    New value of the withKeystroke property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the withKeystroke property with given key or null, if property was not set before.

  • Chevron-right icon

    set:withText( eventInfo, name, value, oldValue )

    Fired when the withText property is going to be set but is not set yet (before the change event is fired).

    Parameters

    eventInfo : EventInfo

    An object containing information about the fired event.

    name : string

    Name of the changed property (withText).

    value : boolean

    New value of the withText property with given key or null, if operation should remove property.

    oldValue : boolean

    Old value of the withText property with given key or null, if property was not set before.