UFTrackStateFade can be used to track a boolean property and fade in or fade out an element accordingly.

The fading is done by changing the transition and opacity styles of the element.

Hierarchy (View Summary)

Constructors

Methods

Constructors

  • Constructs an instance of UFTrackStateFade

    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.

    Returns UFTrackStateFade

Methods