Skip to content

Commit

Permalink
Documentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
djhvscf committed Feb 7, 2016
1 parent f7bce20 commit 21e6793
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/_i18n/en/documentation/table-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,41 @@ function rowStyle(value, row, index) {
index: the row index.<br>
Support all custom attributes.
</td>
</tr>
<tr>
<td>customSearch</td>
<td>data-custom-search</td>
<td>Function</td>
<td>$.noop</td>
<td>
The custom search function is executed instead of built-in search function, takes one parameters: <br>
text: the search text.<br>
Example usage:<br>
<pre>
function customSearch(text) {
//Search logic here.
//You must use `this.data` array in order to filter the data. NO use `this.options.data`.
}
</pre>
</td>
</tr>
<tr>
<td>customSort</td>
<td>data-custom-sort</td>
<td>Function</td>
<td>$.noop</td>
<td>
The custom sort function is executed instead of built-in sort function, takes two parameters: <br>
sortName: the sort name.<br>
sortOrder: the sort order.<br>
Example usage:<br>
<pre>
function customSort(sortName, sortOrder) {
//Sort logic here.
//You must use `this.data` array in order to sort the data. NO use `this.options.data`.
}
</pre>
</td>
</tr>
<tr>
<td>locale</td>
Expand Down
35 changes: 35 additions & 0 deletions docs/_i18n/es/documentation/table-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,5 +487,40 @@ Las opciones de la tabla están definidas en `jQuery.fn.bootstrapTable.defaults`
Soporta cualquier atributo customizable.
</td>
</tr>
<tr>
<td>customSearch</td>
<td>data-custom-search</td>
<td>Function</td>
<td>$.noop</td>
<td>
The custom search function is executed instead of built-in search function, takes one parameters: <br>
text: the search text.<br>
Example usage:<br>
<pre>
function customSearch(text) {
//Search logic here.
//You must use `this.data` array in order to filter the data. NO use `this.options.data`.
}
</pre>
</td>
</tr>
<tr>
<td>customSort</td>
<td>data-custom-sort</td>
<td>Function</td>
<td>$.noop</td>
<td>
The custom sort function is executed instead of built-in sort function, takes two parameters: <br>
sortName: the sort name.<br>
sortOrder: the sort order.<br>
Example usage:<br>
<pre>
function customSort(sortName, sortOrder) {
//Sort logic here.
//You must use `this.data` array in order to sort the data. NO use `this.options.data`.
}
</pre>
</td>
</tr>
</tbody>
</table>
35 changes: 35 additions & 0 deletions docs/_i18n/zh-cn/documentation/table-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,5 +506,40 @@
Support all custom attributes.
</td>
</tr>
<tr>
<td>customSearch</td>
<td>data-custom-search</td>
<td>Function</td>
<td>$.noop</td>
<td>
The custom search function is executed instead of built-in search function, takes one parameters: <br>
text: the search text.<br>
Example usage:<br>
<pre>
function customSearch(text) {
//Search logic here.
//You must use `this.data` array in order to filter the data. NO use `this.options.data`.
}
</pre>
</td>
</tr>
<tr>
<td>customSort</td>
<td>data-custom-sort</td>
<td>Function</td>
<td>$.noop</td>
<td>
The custom sort function is executed instead of built-in sort function, takes two parameters: <br>
sortName: the sort name.<br>
sortOrder: the sort order.<br>
Example usage:<br>
<pre>
function customSort(sortName, sortOrder) {
//Sort logic here.
//You must use `this.data` array in order to sort the data. NO use `this.options.data`.
}
</pre>
</td>
</tr>
</tbody>
</table>

0 comments on commit 21e6793

Please sign in to comment.