jcl.DataFadeBehavior

Implementation of a JavaScript Behavior for a data output control that signals new values by showing a fading yellow background color.

Source file: ~/controls/DataFade.js

Inherits from: jcl

Attributes

highcolor

The highlight color. The usually used yellow is the defaut value.

Public methods

init ()

Initialze the JavaScript control.

setData (val)

Overwrite the setData function to add a fading effect when the value has changed.

Private elements

_orgColor

_fade ()

Implementation of the fade effect by using CSS Transition.


This page is part of the http://www.mathertel.de/ web site.