- Source:
Methods
(static) onEnter(cb) → {function}
Create callback invoked when enter key is pressed.
Parameters:
Name | Type | Description |
---|---|---|
cb |
function | callback |
- Source:
Returns:
callback
- Type
- function
(static) onEscape(cb) → {function}
Create callback invoked when escape key is pressed.
Parameters:
Name | Type | Description |
---|---|---|
cb |
function | callback |
- Source:
Returns:
callback
- Type
- function
(static) onKey(cb, key, shiftKeyopt, ctrlKeyopt) → {function}
Create callback invoked when specified key combination is pressed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cb |
function | callback | |
key |
String | Array | key | |
shiftKey |
Boolean |
<optional> |
shift key flag |
ctrlKey |
Boolean |
<optional> |
ctrl key flag |
- Source:
Returns:
callback
- Type
- function
(static) remove(binding, subpathopt, predopt) → {function}
Create callback used to delete binding value on an event.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
binding |
Binding | binding | |
subpath |
String | Array.<String> |
<optional> |
subpath as a dot-separated string or an array of strings and numbers |
pred |
function |
<optional> |
predicate |
- Source:
Returns:
callback
- Type
- function
(static) set(binding, subpathopt, fopt) → {function}
Create callback used to set binding value on an event.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
binding |
Binding | binding | |
subpath |
String | Array |
<optional> |
subpath as a dot-separated string or an array of strings and numbers |
f |
function |
<optional> |
value transformer |
- Source:
Returns:
callback
- Type
- function