Add documentation for the new row_buttons function.
diff --git a/ListsProtocol.wiki b/ListsProtocol.wiki index 8c4463d..fe2d2fc 100644 --- a/ListsProtocol.wiki +++ b/ListsProtocol.wiki
@@ -66,8 +66,12 @@ "buttons": { "": { } + }, + "row": {}, + "row_buttons" { + "": { + } } - "row": {} } } ] @@ -253,6 +257,17 @@ }, "row": { "link": "http://my_row_edit_link" + }, + "row_buttons": { + "edit": { + "caption": "Edit this User", + "type": "redirect_simple", + "parameters": { + "link": "http://edit1", + "new_window": true + }, + "append_to_column": "key" + } } } } @@ -267,4 +282,5 @@ === operations === This objects defines details for each row if the chosen _type_ of method for buttons and/or rows (defined in _operations/buttons_ and/or in _operations/row_) is *redirect_custom*. The examples very well explains what is needed. * *buttons*: is an *object* which has more than one object inside, indexed by a key. This key is the _id_ defined formerly in _operations/buttons/id_. In this case, the id of the button chosen is _"edit"_. redirect_custom method needs a *caption* (a *string*), which defines what the caption of the button should show when the user clicks on that very row, and a *link* (a *string*) which will be the page where the user should be redirected when that very row is selected and the button is clicked. - * *row*: is an *object*, which contains only a *link* option, which is a *string* that contains an URL. That string defines where the user should be redirected when clicking on a row. \ No newline at end of file + * *row*: is an *object*, which contains only a *link* option, which is a *string* that contains an URL. That string defines where the user should be redirected when clicking on a row. + * *row_buttons* is an *object* which has more than one object inside, indexed by a key. This key is just for reference, to make it unique between all the row buttons. The *caption* (a *string*) defines the caption of the button once is appended to the *append_to_column* (another *string*) column of the row it refers to. *append_to_column* must be a valid column _name_ in the _colModel_ array (see _configurations/colModel_). *type* and *parameters* follow the same rules as per the global _buttons_ in _operations_ objects (see _operations/buttons_). Only *redirect_simple* is enabled at the moment. \ No newline at end of file