Browse Source

Added documentation for the new table option "escapeTitle"

Dustin Utecht 3 years ago
parent
commit
9f68a9b622
1 changed files with 15 additions and 0 deletions
  1. 15 0
      site/docs/api/table-options.md

+ 15 - 0
site/docs/api/table-options.md

@@ -509,11 +509,26 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 - **Detail:**
 
   Escapes a string for insertion into HTML, replacing &, <, >, ", `, and ' characters.
+  To disable it for the column titles check the `escapeTitle` option.
 
 - **Default:** `false`
 
 - **Example:** [Table Escape](https://examples.bootstrap-table.com/#options/table-escape.html)
 
+## escapeTitle
+
+- **Attribute:** `data-escape-title`
+
+- **Type:** `Boolean`
+
+- **Detail:**
+
+  Toggles if the `escape` option should be applied to the column titles.
+
+- **Default:** `true`
+
+- **Example:** [Table Escape title](https://examples.bootstrap-table.com/#options/table-escape-title.html)
+
 ## filterOptions
 
 - **Attribute:** `data-filter-options`