Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EmailInput

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _config

_config: WidgetConfig<Widget> = null

Protected _dataModel

_dataModel: ListModel

Protected _eventBus

_eventBus: EventBus

Protected _initialConfig

_initialConfig: WidgetConfig<Widget> = null

Protected _mainEl

_mainEl: JQuery<HTMLElement>

Protected _valueModel

_valueModel: Model

Readonly id

id: string

widgetEl

widgetEl: JQuery<HTMLElement>

Static I18N

I18N: I18NResource | URLString = null

Methods

Protected _bodyFragment

  • _bodyFragment(): string

Protected _destroy

  • _destroy(): void

Protected _eachMode

  • _eachMode(type: "sizeMode" | "colorMode" | "faceMode", fn: (this: Widget, mode: string) => void, cfg?: WidgetConfig<Widget>): void
  • 按指定模式类型渲染

    Parameters

    • type: "sizeMode" | "colorMode" | "faceMode"

      模式类型

    • fn: (this: Widget, mode: string) => void

      渲染函数

        • (this: Widget, mode: string): void
        • Parameters

          Returns void

    • Optional cfg: WidgetConfig<Widget>

    Returns void

Protected _equalValues

  • _equalValues(newVal: any, oldVal: any): boolean

Protected _fire

  • _fire<E>(e: E, args?: Array<any>): void
  • Type parameters

    • E

    Parameters

    • e: E
    • Optional args: Array<any>

    Returns void

Protected _hAlign

  • _hAlign(): string

Protected _hasFaceMode

Protected _hideError

  • _hideError(): void

Protected _hideTipError

  • _hideTipError(): void

Protected _i18n

Protected _iniValue

  • _iniValue(): void

Protected _initDataModel

  • _initDataModel(): void

Protected _initDom

  • _initDom(): void

Protected _initValueModel

  • _initValueModel(): void

Protected _inputHtml

  • _inputHtml(type?: string): string
  • Parameters

    • Default value type: string = "text"

    Returns string

Protected _onAfterInit

  • _onAfterInit(): void

Protected _onAfterRender

  • _onAfterRender(): void

Protected _onBeforeInit

  • _onBeforeInit(): void

Protected _onBeforeRender

  • _onBeforeRender(): void

Protected _render

  • _render(): void

Protected _renderData

  • _renderData(): void

Protected _renderValue

  • _renderValue(): void

Protected _setValue

  • _setValue(val: any, silent?: boolean): void
  • Parameters

    • val: any
    • Optional silent: boolean

    Returns void

Protected _showError

  • _showError(msg: string): void

Protected _showTipError

  • _showTipError(msg: string): void

Protected _vAlign

  • _vAlign(): string

Protected _validate

  • _validate(name: string, val: any, rst: ValidateResult): string | boolean

clear

  • clear(silent?: boolean): this
  • Clear value.

    Parameters

    • Optional silent: boolean

    Returns this

data

  • data(): any
  • data(data: any, silent?: boolean): this

dataModel

  • dataModel<M>(): M

destroy

  • destroy(): void

disable

  • disable(): this

enable

  • enable(): this

hide

  • hide(): this

iniValue

  • iniValue(): any
  • iniValue(v: any, render?: boolean): this

initialConfig

  • initialConfig<V>(key?: string): V
  • Type parameters

    • V

    Parameters

    • Optional key: string

    Returns V

isEnabled

  • isEnabled(): boolean

isShown

  • isShown(): boolean

load

locale

  • locale(): string
  • locale(locale: string): this

maxlength

  • maxlength(): number
  • maxlength(len: number): this

name

  • name(): string

off

  • off(types?: string): this

on

  • on<H>(types: string, fn: H, once?: boolean): this
  • Type parameters

    • H

    Parameters

    • types: string
    • fn: H
    • Optional once: boolean

    Returns this

placeholder

  • placeholder(): string
  • placeholder(holder: string): this
  • method

    placeholder

    param?

    {string} text

    Returns string

  • Parameters

    • holder: string

    Returns this

readonly

  • readonly(): boolean
  • readonly(is: boolean): this

reload

  • reload(): this

render

  • render<T>(): T

reset

  • reset(): this

show

  • show(): this

title

  • title(text: string): this
  • title(): string

validate

  • validate(): string | boolean

value

  • value(): string
  • value(val: string, silent?: boolean): this

valueModel