byClassname
static
void
byClassname
(
class_name
,
[options]
)
Turns editable DOM Objects selected by their style class.
Everything else works just like
Everything else works just like
byId
.
- Parameters:
-
class_name <String>
the style class for selection -
[options] <Array | Function | JSON>
- Returns:
void
byClassName
static
void
byClassName
(
class_name
,
options
)
As
byClassName
, but with a different case.
- Parameters:
-
class_name <String>
-
options <Array | Function | JSON>
- Returns:
void
byId
static
void
byId
(
ids
,
[options]
)
Turns editable a DOM Object using its id. Operates over multiple Objects if {@param}
ids
is an Array of Strings.
- Parameters:
-
ids <String | Array<String>>
-
[options] <Array | Function | JSON>
may be an Array of values, a callback (fired on the 'onblur' event), or a JSON with all of them.
onBeforeEnter: <Function>, // optional onEnter: <Function>, // optional onExit: <Function>, // optional onBlur: <Function>, // optional. Overrides default behaviour. values: <Array> // optional list of values. It automatically turns element to a Select. mode: <String> // by now only 'textarea' is admitted. It automatically turns element to a Textarea. cols: <Integer> // number of columns of the textarea used as textarea's cols attribute. Used only if 'mode' option has 'textarea' value. rows: <Array> // number of rows of the textarea used as textarea's rows attribute. Used only if 'mode' option has 'textarea' value.
- Returns:
void