ソースを参照

added support (search(clear) button) for semantic ui

Dustin Utecht 6 年 前
コミット
c6f9c7e710
1 ファイル変更4 行追加1 行削除
  1. 4 1
      src/themes/semantic/bootstrap-table-semantic.js

+ 4 - 1
src/themes/semantic/bootstrap-table-semantic.js

@@ -26,8 +26,11 @@ $.BootstrapTable = class extends $.BootstrapTable {
     this.constants.html.pageDropdown = ['<div class="menu">', '</div>']
     this.constants.html.pageDropdownItem = '<a class="item %s" href="#">%s</a>'
     this.constants.html.dropdownCaret = '<i class="dropdown icon"></i>'
-    this.constants.html.pagination = ['<div class="ui pagination menu%s">', '</div>'],
+    this.constants.html.pagination = ['<div class="ui pagination menu%s">', '</div>']
     this.constants.html.paginationItem = '<a class="page-item item%s" href="#">%s</a>'
+    this.constants.html.searchButton = '<button class="ui button" type="button" name="search" title="%s"><i class="%s %s"></i></button>'
+    this.constants.html.searchClearButton = '<button class="ui button" type="button" name="clearSearch" title="%s"><i class="%s %s"></i></button>'
+    this.constants.html.inputGroup = '<div class="ui action input">%s%s</div>'
   }
 
   initToolbar () {