Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap Table Multiple Sort extension #919

Merged
merged 4 commits into from May 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
91 changes: 91 additions & 0 deletions src/extensions/multiple-sort/README.md
@@ -0,0 +1,91 @@
# Table Multiple Sort

Use Plugin: [bootstrap-table-multiple-sort](https://github.com/dimbslmh/bootstrap-table/tree/master/src/extensions/multiple-sort)

## Usage

```html
<script src="extensions/multiple-sort/bootstrap-table-multiple-sort.js"></script>
```

## Options

### showMultiSort

* type: Boolean
* description: Set true to allow the multiple sort.
* default: `false`

### sortPriority

* type: Object
* description: Set one or multiple sort priority. Example: '[{"sortName": "forks_count","sortOrder":"desc"},{"sortName":"stargazers_count","sortOrder":"desc"}]'
* default: null

### Icons
* sort: `glyphicon-sort`
* plus: `glyphicon-plus`
* minus: `glyphicon-minus`

## Locales

### formatMultipleSort

* description: Title of the advanced search modal
* default: `Multiple Sort`

### formatAddLevel

* description: Text of the add level button
* default: `Add Level`

### formatDeleteLevel

* description: Text of the delete level button
* default: `Delete Level`

### formatColumn

* description: Text of Column header
* default: `Column`

### formatOrder

* description: Text of the delete level button
* default: `Order`

### formatSortBy

* description: Text of the delete level button
* default: `Sort by`

### formatThenBy

* description: Text of the delete level button
* default: `Then by`

### formatSort

* description: Text of the delete level button
* default: `Sort`

### formatCancel

* description: Text of the delete level button
* default: `Cancel`

### formatDuplicateAlertTitle

* description: Title of the duplicate alert
* default: `Duplicate(s) detected!`

### formatDuplicateAlertDescription

* description: Text of the duplicate alert
* default: `Please remove or change any duplicate column.`

## Events

### onMultipleSort(multiple-sort.bs.table)

* Fires when sorting with one or multiple Sort Priority.