-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from wenzhixin/feature/options
Rebuild options to es6 and new template
- Loading branch information
Showing
108 changed files
with
4,641 additions
and
3,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,41 @@ | ||
<script> | ||
init({ | ||
title: 'Basic Columns', | ||
desc: 'Use `showColumns` to show the columns drop down list.', | ||
links: ['bootstrap-table.min.css'], | ||
scripts: ['bootstrap-table.min.js'] | ||
}) | ||
init({ | ||
title: 'Basic Columns', | ||
desc: 'Use `showColumns` to show the columns drop down list.', | ||
links: ['bootstrap-table.min.css'], | ||
scripts: ['bootstrap-table.min.js'] | ||
}) | ||
</script> | ||
|
||
<table | ||
id="table" | ||
data-toggle="table" | ||
data-height="460" | ||
data-url="json/data5.json" | ||
data-show-columns="true"> | ||
<thead> | ||
<tr> | ||
<th data-field="name">Name</th> | ||
<th data-field="price">Price</th> | ||
<th data-field="column1">Columns1</th> | ||
<th data-field="column2">Columns2</th> | ||
<th data-field="column3">Columns3</th> | ||
<th data-field="column4">Columns4</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
<template> | ||
<table | ||
id="table" | ||
data-toggle="table" | ||
data-height="460" | ||
data-url="json/data5.json" | ||
data-show-columns="true" | ||
> | ||
<thead> | ||
<tr> | ||
<th data-field="name"> | ||
Name | ||
</th> | ||
<th data-field="price"> | ||
Price | ||
</th> | ||
<th data-field="column1"> | ||
Columns1 | ||
</th> | ||
<th data-field="column2"> | ||
Columns2 | ||
</th> | ||
<th data-field="column3"> | ||
Columns3 | ||
</th> | ||
<th data-field="column4"> | ||
Columns4 | ||
</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
<script> | ||
init({ | ||
title: 'Buttons Align', | ||
desc: 'Use `buttonsAlign` option to indicate how to align the toolbar buttons.', | ||
links: ['bootstrap-table.min.css'], | ||
scripts: ['bootstrap-table.min.js'] | ||
}) | ||
init({ | ||
title: 'Buttons Align', | ||
desc: 'Use `buttonsAlign` option to indicate how to align the toolbar buttons.', | ||
links: ['bootstrap-table.min.css'], | ||
scripts: ['bootstrap-table.min.js'] | ||
}) | ||
</script> | ||
|
||
<table | ||
id="table" | ||
data-toggle="table" | ||
data-height="460" | ||
data-search="true" | ||
data-show-columns="true" | ||
data-buttons-align="left" | ||
data-url="json/data1.json"> | ||
<thead> | ||
<tr> | ||
<th data-field="id">ID</th> | ||
<th data-field="name">Item Name</th> | ||
<th data-field="price">Item Price</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
<template> | ||
<table | ||
id="table" | ||
data-toggle="table" | ||
data-height="460" | ||
data-search="true" | ||
data-show-columns="true" | ||
data-buttons-align="left" | ||
data-url="json/data1.json" | ||
> | ||
<thead> | ||
<tr> | ||
<th data-field="id"> | ||
ID | ||
</th> | ||
<th data-field="name"> | ||
Item Name | ||
</th> | ||
<th data-field="price"> | ||
Item Price | ||
</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,44 @@ | ||
<script> | ||
init({ | ||
title: 'Buttons Attribute Title', | ||
desc: 'Customize the title attribute of the toolbar buttons, which is mainly used to customize the toolbar style.', | ||
links: [ | ||
'https://unpkg.com/[email protected]/src/hint-css.css', | ||
'bootstrap-table.min.css' | ||
], | ||
scripts: [ | ||
'https://unpkg.com/[email protected]/src/hint-css.js', | ||
'bootstrap-table.min.js' | ||
] | ||
}) | ||
init({ | ||
title: 'Buttons Attribute Title', | ||
desc: 'Customize the title attribute of the toolbar buttons, which is mainly used to customize the toolbar style.', | ||
links: [ | ||
'https://unpkg.com/[email protected]/src/hint-css.css', | ||
'bootstrap-table.min.css' | ||
], | ||
scripts: [ | ||
'https://unpkg.com/[email protected]/src/hint-css.js', | ||
'bootstrap-table.min.js' | ||
] | ||
}) | ||
</script> | ||
|
||
<table | ||
id="table" | ||
data-toggle="table" | ||
data-height="460" | ||
data-search="true" | ||
data-show-pagination-switch="true" | ||
data-show-refresh="true" | ||
data-show-toggle="true" | ||
data-show-columns="true" | ||
data-show-fullscreen="true" | ||
data-buttons-attribute-title="data-hint" | ||
data-url="json/data1.json"> | ||
<thead> | ||
<tr> | ||
<th data-field="id">ID</th> | ||
<th data-field="name">Item Name</th> | ||
<th data-field="price">Item Price</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
<template> | ||
<table | ||
id="table" | ||
data-toggle="table" | ||
data-height="460" | ||
data-search="true" | ||
data-show-pagination-switch="true" | ||
data-show-refresh="true" | ||
data-show-toggle="true" | ||
data-show-columns="true" | ||
data-show-fullscreen="true" | ||
data-buttons-attribute-title="data-hint" | ||
data-url="json/data1.json" | ||
> | ||
<thead> | ||
<tr> | ||
<th data-field="id"> | ||
ID | ||
</th> | ||
<th data-field="name"> | ||
Item Name | ||
</th> | ||
<th data-field="price"> | ||
Item Price | ||
</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
<script> | ||
init({ | ||
title: 'Buttons Class', | ||
desc: 'Use `buttonsClass: \'primary\'` option to defines the class of table buttons.', | ||
links: ['bootstrap-table.min.css'], | ||
scripts: ['bootstrap-table.min.js'] | ||
}) | ||
init({ | ||
title: 'Buttons Class', | ||
desc: 'Use `buttonsClass: \'primary\'` option to defines the class of table buttons.', | ||
links: ['bootstrap-table.min.css'], | ||
scripts: ['bootstrap-table.min.js'] | ||
}) | ||
</script> | ||
|
||
<table | ||
id="table" | ||
data-toggle="table" | ||
data-height="460" | ||
data-show-refresh="true" | ||
data-show-columns="true" | ||
data-show-fullscreen="true" | ||
data-buttons-class="primary" | ||
data-url="json/data1.json"> | ||
<thead> | ||
<tr> | ||
<th data-field="id">ID</th> | ||
<th data-field="name">Item Name</th> | ||
<th data-field="price">Item Price</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
<template> | ||
<table | ||
id="table" | ||
data-toggle="table" | ||
data-height="460" | ||
data-show-refresh="true" | ||
data-show-columns="true" | ||
data-show-fullscreen="true" | ||
data-buttons-class="primary" | ||
data-url="json/data1.json" | ||
> | ||
<thead> | ||
<tr> | ||
<th data-field="id"> | ||
ID | ||
</th> | ||
<th data-field="name"> | ||
Item Name | ||
</th> | ||
<th data-field="price"> | ||
Item Price | ||
</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
</template> |
Oops, something went wrong.