wiki:plugin:bootswrapper:button

This is an old revision of the document!


Buttons

<btn type="primary">Primary</btn> ... 

Default Primary Success Info Warning Danger Link

<btn type="success" size="lg" icon="glyphicon glyphicon-edit">[[:wiki:welcome]]</btn>

Welcome to your new DokuWiki

Fancy larger or smaller buttons? Add size=“lg”, size=“sm”, or size=“xs” for additional sizes.

Large button Large button

Default button Default button

Small button Small button

Extra small button Extra small button


<btn type="primary" size="lg">Large button</btn>
<btn type="default" size="lg">Large button</btn>
 
<btn type="primary">Default button</btn>
<btn type="default">Default button</btn>
 
<btn type="primary" size="sm">Small button</btn>
<btn type="default" size="sm">Small button</btn>
 
<btn type="primary" size="xs">Extra small button</btn>
<btn type="default" size="xs">Extra small button</btn>

Create block level buttons—those that span the full width of a parent – by adding block=“true” option.

Block level button
Block level button


<btn type="primary" size="lg" block="true">Block level button</btn>
<btn type="default" size="lg" block="true">Block level button</btn>
Attribute Default Value Allowed Values Description
type default default, primary, success, info, warning, danger, link Type of button
icon optional Font icon class (eg. Glyphicon or Font-Awesome)
size optional Allowed values: lg, sm
block optional true, false Block level buttons
collapse optional Target element selector to collapse (see Collapse)
  • wiki/plugin/bootswrapper/button.1455891247.txt.gz
  • Last modified: 8 years ago
  • by Giuseppe Di Terlizzi