浏览代码

Added documentation for the new sortReset method

Dustin Utecht 1 年之前
父节点
当前提交
2208fb9dec
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      site/docs/api/methods.md

+ 9 - 0
site/docs/api/methods.md

@@ -522,6 +522,15 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter)`.
 
 - **Example:** [Sort By](https://examples.bootstrap-table.com/#methods/sort-by.html)
 
+## sortReset
+
+- **Parameter:** `undefined`
+
+- **Detail:**
+
+  Resets sort state of the table regardless of whether caused by the user or programmatically.
+
+- **Example:** [Sort reset](https://examples.bootstrap-table.com/#methods/sort-reset.html)
 
 ## toggleDetailView