Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UIButton

Hierarchy

Implements

Index

Constructors

constructor

  • new UIButton(text: string, style?: string | null, icon?: string | null, type?: string | null): UIButton
  • Parameters

    • text: string
    • Optional style: string | null
    • Optional icon: string | null
    • Optional type: string | null

    Returns UIButton

Properties

Static SIZE_LARGE

SIZE_LARGE: string

Static SIZE_NORMAL

SIZE_NORMAL: string

Static SIZE_SMALL

SIZE_SMALL: string

Static SIZE_TINY

SIZE_TINY: string

Static STYLE_DANGER

STYLE_DANGER: string

Static STYLE_DEFAULT

STYLE_DEFAULT: string

Static STYLE_INFO

STYLE_INFO: string

Static STYLE_LINK

STYLE_LINK: string

Static STYLE_PRIMARY

STYLE_PRIMARY: string

Static STYLE_SUCCESS

STYLE_SUCCESS: string

Static STYLE_WARNING

STYLE_WARNING: string

Static TYPE_BUTTON

TYPE_BUTTON: string

Static TYPE_SUBMIT

TYPE_SUBMIT: string

Methods

addClass

  • addClass(cls: string): this

buildInit

css

  • css(css: object): this
  • Parameters

    • css: object
      • [key: string]: any

    Returns this

getElem

  • getElem(): JQuery

getText

  • getText(): string
  • Returns string

getWrappedControl

  • getWrappedControl(): object | null

off

  • off(event: string, callback: function): this
  • Parameters

    • event: string
    • callback: function
        • (e?: JQueryEventObject): void
        • Parameters

          • Optional e: JQueryEventObject

          Returns void

    Returns this

on

  • on(event: string, callback: function): this
  • Parameters

    • event: string
    • callback: function
        • (e?: JQueryEventObject): void
        • Parameters

          • Optional e: JQueryEventObject

          Returns void

    Returns this

removeClass

  • removeClass(cls: string): this

setButtonSize

  • setButtonSize(size: string): this
  • Parameters

    • size: string

    Returns this

setButtonStyle

  • setButtonStyle(style: string): this
  • Parameters

    • style: string

    Returns this

setEnabled

  • setEnabled(enabled: boolean): void

setIcon

  • setIcon(icon: string | null): void
  • Parameters

    • icon: string | null

    Returns void

setLoading

  • setLoading(enabled: boolean): void
  • Parameters

    • enabled: boolean

    Returns void

setText

  • setText(text: string): this
  • Parameters

    • text: string

    Returns this

setTitle

  • setTitle(title: string): this

setTooltip

  • setTooltip(value: string | boolean, placement?: undefined | string, trigger?: undefined | string): void
  • Parameters

    • value: string | boolean
    • Optional placement: undefined | string
    • Optional trigger: undefined | string

    Returns void

setType

  • setType(type: string): void
  • Parameters

    • type: string

    Returns void

setVisible

  • setVisible(visible: boolean): this

trigger

  • trigger(event: string, extraParameters?: any): this
  • Parameters

    • event: string
    • Optional extraParameters: any

    Returns this

Static wrapControl