Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextField

Hierarchy

Implements

Index

Constructors

constructor

  • new TextField(text?: undefined | string, placeholder?: undefined | string, textArea?: undefined | false | true, resizable?: string | boolean, prepend?: HTMLElement | JQuery, append?: HTMLElement | JQuery): TextField
  • Parameters

    • Optional text: undefined | string
    • Optional placeholder: undefined | string
    • Optional textArea: undefined | false | true
    • Optional resizable: string | boolean
    • Optional prepend: HTMLElement | JQuery
    • Optional append: HTMLElement | JQuery

    Returns TextField

Properties

elem

elem: JQuery

input

input: JQuery

textArea

textArea: boolean

Methods

addClass

  • addClass(cls: string): this

buildInit

css

  • css(css: object): this
  • Parameters

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

    Returns this

focus

  • focus(): void
  • Returns void

getElem

  • getElem(): JQuery

getPlaceholder

  • getPlaceholder(): string
  • Returns string

getText

  • getText(): string
  • Returns string

getValue

  • getValue(): string
  • Returns string

getWrappedControl

  • getWrappedControl(): object | null

insertAtCursor

  • insertAtCursor(text: string): void
  • Parameters

    • text: string

    Returns void

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

prepareAdOn

  • prepareAdOn(el: HTMLElement | JQuery): JQLite
  • Parameters

    • el: HTMLElement | JQuery

    Returns JQLite

removeClass

  • removeClass(cls: string): this

setAsPassword

  • setAsPassword(asPassword: boolean): this
  • Parameters

    • asPassword: boolean

    Returns this

setEnabled

  • setEnabled(enabled: boolean): this

setName

  • setName(name: string): void
  • Parameters

    • name: string

    Returns void

setPlaceholder

  • setPlaceholder(text: string): this
  • Parameters

    • text: string

    Returns this

setResizable

  • setResizable(resizable: string | boolean): void
  • Parameters

    • resizable: string | boolean

    Returns void

setText

  • setText(text: string | number): this
  • Parameters

    • text: string | number

    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

setValue

  • setValue(text: string | number): this
  • Parameters

    • text: string | number

    Returns this

setVisible

  • setVisible(visible: boolean): this

trigger

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

    • event: string
    • Optional extraParameters: any

    Returns this

Static wrapControl