Browse Source

Add 'searchAlign' and 'toolbarAlign' options.

zhixin 11 years ago
parent
commit
234845be29
2 changed files with 29 additions and 10 deletions
  1. 1 0
      README.md
  2. 28 10
      docs/docs.js

+ 1 - 0
README.md

@@ -33,6 +33,7 @@ Bootstrap table displays data in a tabular format and offers rich support to rad
 - [x] Fix #185: Reset the page to the first page when changing the url with `refresh` method.
 - [x] Fix #202: updateRow method keep the scroll position.
 - [x] Add `smartDisplay` option.
+- [x] Add `searchAlign` and `toolbarAlign` options.
 
 ## Features
 

+ 28 - 10
docs/docs.js

@@ -268,15 +268,6 @@ $(function () {
                     example: 'via-javascript-table'
                 },
                 {
-                    name: 'search',
-                    attribute: 'data-search',
-                    type: 'Boolean',
-                    description: 'Enable the search input.',
-                    description_zh: '启用搜索输入框。',
-                    'default': 'false',
-                    example: 'pagination-table'
-                },
-                {
                     name: 'selectItemName',
                     attribute: 'data-select-item-name',
                     type: 'String',
@@ -292,7 +283,16 @@ $(function () {
                     description: 'True to display pagination or card view smartly.',
                     description_zh: '设置为True智能显示分页或者Card View。',
                     'default': 'true',
-                    example: '-'
+                    example: ''
+                },
+                {
+                    name: 'search',
+                    attribute: 'data-search',
+                    type: 'Boolean',
+                    description: 'Enable the search input.',
+                    description_zh: '启用搜索输入框。',
+                    'default': 'false',
+                    example: 'pagination-table'
                 },
                 {
                     name: 'showHeader',
@@ -358,6 +358,24 @@ $(function () {
                     example: 'card-view'
                 },
                 {
+                    name: 'searchAlign',
+                    attribute: 'data-search-align',
+                    type: 'String',
+                    description: 'Indicate how to align the search input. "left", "right" can be used.',
+                    description_zh: '定义搜索栏的对齐方式,只能为:"left", "right"。',
+                    'default': 'right',
+                    example: ''
+                },
+                {
+                    name: 'toolbarAlign',
+                    attribute: 'data-toolbar-align',
+                    type: 'String',
+                    description: 'Indicate how to align the toolbar buttons. "left", "right" can be used.',
+                    description_zh: '定义工具栏按钮的对齐方式,只能为:"left", "right"。',
+                    'default': 'right',
+                    example: ''
+                },
+                {
                     name: 'clickToSelect',
                     attribute: 'data-click-to-select',
                     type: 'Boolean',