jsbeans

jsbeans  1.0.0

jsbeans > jsbeans > jsbeans.PleaseWait
Search:
 
Filters

static Class jsbeans.PleaseWait

Disables buttons until response has come back and/or for an user-defined interval. Useful for AJAX form's submition.

Methods

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} 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 as init plus onStart and onStop 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


Copyright © 2016 Francesco Mele. All rights reserved.