bootstrap-table
Version:
An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
64 lines (36 loc) • 1.16 kB
Markdown
---
layout: docs
title: Table Export
description: Table Export extension of Bootstrap Table.
group: extensions
toc: true
---
Use Plugin: [tableExport.jquery.plugin](https://github.com/hhurz/tableExport.jquery.plugin)
This is an important link to check out as some file types may require extra steps.
## Usage
{% highlight html %}
<script src="extensions/export/bootstrap-table-export.js"></script>
{% endhighlight %}
## Options
### showExport
- **type:** `Boolean`
- **Detail:**
set `true` to show export button.
- **Default:** `false`
### exportDataType
- **type:** `String`
- **Detail:**
export data type, support: 'basic', 'all', 'selected'.
- **Default:** `basic`
### exportTypes
- **type:** `Array`
- **Detail:**
export types, support types: 'json', 'xml', 'png', 'csv', 'txt', 'sql', 'doc', 'excel', 'xlsx', 'pdf'.
- **Default:** `['json', 'xml', 'csv', 'txt', 'sql', 'excel']`
### exportOptions
- **type:** `Object`
- **Detail:**
export [options](https://github.com/hhurz/tableExport.jquery.plugin#options) of `tableExport.jquery.plugin`
- **Default:** `{}`
### Icons
- export: `'glyphicon-export icon-share'`