bootstrap-table
Version:
An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
51 lines (30 loc) • 1.19 kB
Markdown
layout: docs
title: Table Multi Column Toggle
description: Table Multi Column Toggle extension of Bootstrap Table.
group: extensions
toc: true
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
{% highlight html %}
<script src="extensions/multi-column-toggle/bootstrap-table-multi-toggle.js"></script>
{% endhighlight %}
## Options
### showToggleBtn
- **type:** `Boolean`
- **Detail:**
Set true to show the toggle button. This button toggles hiding and showing of multiple columns at once.
- **Default:** `false`
### multiToggleDefaults
- **type:** `Array`
- **Detail:**
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*.