浏览代码

#193: Add dataType docs and example.

zhixin 11 年之前
父节点
当前提交
db84766373
共有 3 个文件被更改,包括 12 次插入2 次删除
  1. 2 1
      README.md
  2. 9 0
      docs/docs.js
  3. 1 1
      docs/examples.html

+ 2 - 1
README.md

@@ -27,7 +27,7 @@ Bootstrap table displays data in a tabular format and offers rich support to rad
 - [ ] Fix #144: `onCheck` and `onUncheck` method are reversed when using `clickToSelect` option. (jQuery 1.7.2 bug).
 - [x] Apply `width` column option to row style.
 - [x] Add bootstrap-table-filter extension.
-- [x] Add cs-CZ, es-CR, es-NI and pl-PL locales.
+- [x] Add cs-CZ, es-CR, es-NI, pl-PL, ur-PK and ko-KR locales.
 - [x] Fix `minimumCountColumns` option init error.
 - [x] Fix #161: `undefined` or `null` string sort bug.
 - [x] Fix #171: IE disabled button can be clicked bug.
@@ -35,6 +35,7 @@ Bootstrap table displays data in a tabular format and offers rich support to rad
 - [x] Fix #202: updateRow method keep the scroll position.
 - [x] Add `smartDisplay` option.
 - [x] Add `searchAlign` and `toolbarAlign` options.
+- [x] Fix #193: Add `dataType` option.
 
 ## Features
 

+ 9 - 0
docs/docs.js

@@ -187,6 +187,15 @@ $(function () {
                     example: ''
                 },
                 {
+                    name: 'dataType',
+                    attribute: 'data-data-type',
+                    type: 'String',
+                    description: 'The type of data that you are expecting back from the server.',
+                    description_zh: '远程数据请求返回的数据类型。',
+                    'default': 'json',
+                    example: ''
+                },
+                {
                     name: 'queryParams',
                     attribute: 'data-query-params',
                     type: 'Function',

+ 1 - 1
docs/examples.html

@@ -130,7 +130,7 @@
                 <hr>
                 <div>
                     <h2>AJAX:</h2>
-                    <p>Use <code>url</code>, <code>method</code>, <code>cache</code>, <code>contentType</code>, <code>queryParams</code>, <code>queryParamsType</code>, <code>responseHandler</code> options to set the AJAX request and response params.</p>
+                    <p>Use <code>url</code>, <code>method</code>, <code>cache</code>, <code>contentType</code>, <code>dataType</code>, <code>queryParams</code>, <code>queryParamsType</code>, <code>responseHandler</code> options to set the AJAX request and response params.</p>
                 </div>
                 <hr>