init
static
void
init
(
[options]
)
- Parameters:
-
[options] <JSON>
enablingClassName: String, // tells which style class will be used when button is re-enabled. Optional disablingClassName: String, // tells which style class will be used when button is disabled. Optional disablingCursor: String, // tells what to do with cursor's style. Optional with default "wait" waitingTime: Integer // number of seconds until method stop is fired. If -1 it won't be fired. Optional with default -1.
- Returns:
void
start
static
void
start
(
node
,
[options]
)
Whan fired {@param}
If {@param}
node
, usually a button or an input submit, is disabled and predefined style class are applied.If {@param}
node
is null
or undefined
this method will exit silently.
- Parameters:
-
node <DOM>
the disabled DOM object -
[options] <JSON>
same asinit
plusonStart
andonStop
functions called just before disabling and after re-enabling calls.
- Returns:
void
stop
static
void
stop
(
[id]
)
Re-enables the last disabled object or the one indicated by its {@param}
id
.
- Parameters:
-
[id] <String>
- Returns:
void