... | ... | @@ -16,7 +16,7 @@ Creating an action |
|
|
==================
|
|
|
|
|
|
An action is a Javascript function that is called when the action
|
|
|
is executed. It receives the node and a parameter object::
|
|
|
is executed. It receives the node and a parameter object:
|
|
|
|
|
|
```js
|
|
|
kss.registerActionProvider('replaceInnerHTML', function(node, params) {
|
... | ... | @@ -28,7 +28,7 @@ Creating a parameter provider |
|
|
=============================
|
|
|
|
|
|
A parameter provider is a Javascript function that is called for each
|
|
|
parameter for an action. It receives the node and all arguments::
|
|
|
parameter for an action. It receives the node and all arguments:
|
|
|
|
|
|
```js
|
|
|
kss.registerParameterProvider('nodeAttr', function(node, name) {
|
... | ... | |