Skip to content

Commit 9328f5c

Browse files
improve advanced search, add radio input for boolean values (#3)
* improve advanced search, add radio input for boolean values * fix jump-to-page in bootstrap 3 css
1 parent f4e2075 commit 9328f5c

File tree

9 files changed

+481
-43
lines changed

9 files changed

+481
-43
lines changed

README.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -236,27 +236,28 @@ Represents column with text. With formatter you can create complex columns.
236236

237237
#### Options
238238

239-
| Option | Type | Default | Description |
240-
| --------------- | -------------- | ------- | ------------------------------------------------------------ |
241-
| title | string / null | null | Set column title. If no value is set, the specified attribute name is taken. |
242-
| field | string / null | null | Set internal field name for bootstrap-table. If no value is set, the specified attribute name is taken. |
243-
| width | integer / null | null | column width in px |
244-
| widthUnit | string | "px" | Unit of width. |
245-
| class | string / null | null | The column class name. |
246-
| formatter | string / null | null | JavaScript function name for formatter. (see [formatter](https://bootstrap-table.com/docs/api/column-options/#formatter)) |
247-
| footerFormatter | string / null | null | JavaScript function name for footer formatter. |
248-
| searchable | bool | true | enable / disable filtering for this column |
249-
| sortable | bool | true | enable / disable sortable for this column |
250-
| switchable | bool | true | enable / disable interactive hide and show of column. |
251-
| visible | bool | true | show / hide column |
252-
| emptyData | string | "" | default value if attribute from entity is null |
253-
| sort | Closure / null | null | custom sort query callback (see example) |
254-
| filter | Closure / null | null | custom filter query callback (see example) |
255-
| data | Closure / null | null | custom data callback (see example) |
256-
| align | string / null | null | Indicate how to align the column data. `'left'`, `'right'`, `'center'` can be used. |
257-
| halign | string / null | null | Indicate how to align the table header. `'left'`, `'right'`, `'center'` can be used. |
258-
| valign | string / null | null | Indicate how to align the cell data. `'top'`, `'middle'`, `'bottom'` can be used. |
259-
| falign | string / null | null | Indicate how to align the table footer. `'left'`, `'right'`, `'center'` can be used. |
239+
| Option | Type | Default | Description |
240+
| ------------------ | -------------- | ------- | ------------------------------------------------------------ |
241+
| title | string / null | null | Set column title. If no value is set, the specified attribute name is taken. |
242+
| field | string / null | null | Set internal field name for bootstrap-table. If no value is set, the specified attribute name is taken. |
243+
| width | integer / null | null | column width in px |
244+
| widthUnit | string | "px" | Unit of width. |
245+
| class | string / null | null | The column class name. |
246+
| formatter | string / null | null | JavaScript function name for formatter. (see [formatter](https://bootstrap-table.com/docs/api/column-options/#formatter)) |
247+
| footerFormatter | string / null | null | JavaScript function name for footer formatter. |
248+
| searchable | bool | true | enable / disable filtering for this column |
249+
| sortable | bool | true | enable / disable sortable for this column |
250+
| switchable | bool | true | enable / disable interactive hide and show of column. |
251+
| visible | bool | true | show / hide column |
252+
| emptyData | string | "" | default value if attribute from entity is null |
253+
| sort | Closure / null | null | custom sort query callback (see example) |
254+
| filter | Closure / null | null | custom filter query callback (see example) |
255+
| data | Closure / null | null | custom data callback (see example) |
256+
| align | string / null | null | Indicate how to align the column data. `'left'`, `'right'`, `'center'` can be used. |
257+
| halign | string / null | null | Indicate how to align the table header. `'left'`, `'right'`, `'center'` can be used. |
258+
| valign | string / null | null | Indicate how to align the cell data. `'top'`, `'middle'`, `'bottom'` can be used. |
259+
| falign | string / null | null | Indicate how to align the table footer. `'left'`, `'right'`, `'center'` can be used. |
260+
| advancedSearchType | string | "text" | set `text` for input field or `checkbox` for radio input (Empty, True, False) in advanced search |
260261

261262
#### Example
262263

@@ -310,6 +311,8 @@ Represents column with boolean values.
310311

311312
All options of TextColumn.
312313

314+
`advancedSearchType` is set to `checkbox` by default.
315+
313316
**And**:
314317

315318
| Option | Type | Default | Description |

assets/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ require('bootstrap-table/dist/extensions/export/bootstrap-table-export.min');
88
require('bootstrap-table/dist/extensions/cookie/bootstrap-table-cookie.min');
99
//require('bootstrap-table/dist/extensions/sticky-header/bootstrap-table-sticky-header.min');
1010
require('./bootstrap-table-sticky-header');
11-
require('bootstrap-table/dist/extensions/toolbar/bootstrap-table-toolbar.min');
11+
//require('bootstrap-table/dist/extensions/toolbar/bootstrap-table-toolbar.min');
12+
require('./bootstrap-table-toolbar');
1213
require("bootstrap-table/dist/extensions/page-jump-to/bootstrap-table-page-jump-to.min");
1314
require("bootstrap-table/dist/bootstrap-table-locale-all.min");
1415

0 commit comments

Comments
 (0)