Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InputElement

Hierarchy

Implements

Index

Constructors

constructor

  • new InputElement(root: HTMLElement, Name: string, Enabled?: boolean, Type?: string, Id?: string, Class?: string, Style?: string): InputElement
  • Parameters

    • root: HTMLElement
    • Name: string
    • Default value Enabled: boolean = true
    • Default value Type: string = "text"
    • Optional Id: string
    • Optional Class: string
    • Optional Style: string

    Returns InputElement

Properties

Protected Optional Class

Class: string

classes assigned to element like in html class attribute format

Protected Enabled

Enabled: boolean

Protected Optional Id

Id: string

element id

Protected Name

Name: string

Protected Optional Style

Style: string

styles assigned to element like in html style attribute format

Protected Type

Type: string

Private _disableChanged

_disableChanged: boolean = false

Private _disableClicked

_disableClicked: boolean = false

Private _disableInputed

_disableInputed: boolean = false

Protected _enabled

_enabled: boolean

Protected _value

_value: any

Protected changed

changed: Subject<InputData> = new Subject<InputData>()

changed$

changed$: Observable<InputData> = this.changed.asObservable()

Protected clicked

clicked: Subject<InputData> = new Subject<InputData>()

clicked$

clicked$: Observable<InputData> = this.clicked.asObservable()

Protected disabled

disabled: Subject<InputData> = new Subject<InputData>()

disabled$

disabled$: Observable<InputData> = this.disabled.asObservable()

Protected enabled

enabled: Subject<InputData> = new Subject<InputData>()

enabled$

enabled$: Observable<InputData> = this.enabled.asObservable()

Protected inputed

inputed: Subject<InputData> = new Subject<InputData>()

inputed$

inputed$: Observable<InputData> = this.inputed.asObservable()

node

node: HTMLInputElement

Protected root

root: HTMLElement

Methods

DisableChangeObservable

  • DisableChangeObservable(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

DisableClickObservable

  • DisableClickObservable(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

DisableInputObservable

  • DisableInputObservable(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

Event

  • Event(): void

Init

  • Init(): void

addClass

  • addClass(value: string): void

addStyle

  • addStyle(value: string): void

class

  • class(value: string): this
  • Set class of element with a chainable method

    Parameters

    • value: string

      string of classes with empty space separator

    Returns this

disable

  • disable(): this

enable

  • enable(): this

getValue

  • getValue(): any

id

  • id(value: string): this
  • Set id of element with a chainable method

    Parameters

    • value: string

      id of element

    Returns this

isEnabled

  • isEnabled(): boolean

removeClass

  • removeClass(value: string): void

removeStyle

  • removeStyle(value: string): void

Protected setAttr

  • setAttr(name: string, value: string): void

setClass

  • setClass(value: string): void
  • Set class attribute of element like in html class attribute format

    Parameters

    • value: string

      string of classes with empty space separator

    Returns void

setId

  • setId(value: string): void

setStyle

  • setStyle(value: string): void
  • Set style attribute of element like in html style attribute format

    Parameters

    • value: string

      string of style with ';' separator

    Returns void

setType

  • setType(value: string): void
  • Parameters

    • value: string

    Returns void

setValue

  • setValue(value: string): void
  • Parameters

    • value: string

    Returns void

style

  • style(value: string): this
  • Set style of element with a chainable method

    Parameters

    • value: string

      string of style with ';' separator

    Returns this

type

  • type(value: string): this
  • Parameters

    • value: string

    Returns this

value

  • value(value: string): this
  • Parameters

    • value: string

    Returns this

Generated using TypeDoc