layout: docs title: Custom View description: Custom View extension of Bootstrap Table. group: extensions
This extension adds the ability to create a custom view to display the data.
{% highlight html %} {% endhighlight %}
Attribute: data-custom-view
Type: Function|Boolean
Detail:
Set to false to disable this extension.
Set to function to format your custom view.
falseAttribute: data-custom-view-default-view
Type: Boolean
Detail:
Set to true to show the custom view as the default view.
falseAttribute: data-show-custom-view
Type: Boolean
Detail:
Set to true to show the custom view toggle button.
falseglyphicon glyphicon-listfa fa-eyefa fa-eyefa fa-eyefa fa-eyeremove_red_eyeglyphicon glyphicon-thumbnailsfa fa-thfa fa-thfa fa-thfa fa-thgrid_onjQuery Event: custom-view-pre-body.bs.table
Parameter: undefined
Detail:
It fires before the custom view is rendered.
jQuery Event: custom-view-post-body.bs.table
Parameter: undefined
Detail:
It fires after the custom view is rendered.
It fires when the custom view is toggled.
jQuery Event: toggle-custom-view.bs.table
Parameter: state
Detail:
It fires when the custom view is toggled:
state: the new custom view state (true-> Custom view is enabled, false -> Custom view is disabled )type: Function
Default: function () { return "Show custom view" }
type: Function
Default: function () { return "Hide custom view" }