UFTrackStateShow can be used to track a boolean property and show an element accordingly.

Show in the element when the property gets true and hide the element when it gets false.

Hierarchy (View Summary)

Constructors

Methods

Constructors

  • Constructs an instance of UFTrackStateShow

    Parameters

    • anElement: HTMLElement

      DOM element to add the enabled/disabled css class to.

    • aData: UFModel

      An instance extending UFModel

    • aPropertyName: string = 'enabled'

      The property name to track.

    • aReverse: boolean = false

      When true hide the element when property is true and show when the property becomes false.

    • aDisplay: string = 'auto'

      Value to use for the display style when the element should be shown. Use 'auto' to use the initial display value at the element.

    Returns UFTrackStateShow

Methods