审查视图

public/assets/libs/bootstrap-table/src/extensions/multi-column-toggle/README.md 1011 字节
王智 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
# Multi Column Toggle

Use Plugin: [multi-column-toggle](https://github.com/wenzhixin/bootstrap-table/tree/develop/src/extensions/multi-column-toggle)

Adds a button to the toolbar that hides and shows all columns that are 'switchable'.

## Usage

```html
<script src="extensions/multi-column-toggle/bootstrap-table-multi-toggle.js"></script>
```

## Options

### showToggleBtn

* type: Boolean
* description: Set true to show the toggle button. This button toggles hiding and showing of multiple columns at once.
* default: `false`

### multiToggleDefaults

* type: Array of Strings
* description: Defines 'default' columns that will never be hidden with this extension. These are different from 
* default: `[]`
* example html: `data-multi-toggle-defaults='["column1", "column2"]'`

## Methods

### copyColumnsToClipboard

* copies the contents of the selected rows to the clipboard.

### copyColumnsToClipboardWithHidden

* copies the contents of the selected rows to the clipboard, *including hidden rows*.