wiki:plugin:bootswrapper:button

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:plugin:bootswrapper:button [2016/02/19 15:22] – [Options] Giuseppe Di Terlizziwiki:plugin:bootswrapper:button [2016/02/22 17:53] (current) – [Options] Giuseppe Di Terlizzi
Line 22: Line 22:
 <btn type="link">Link</btn> <btn type="link">Link</btn>
 </code> </code>
 +
 +\\
 +
 ==== Link button ==== ==== Link button ====
  
Line 27: Line 30:
  
 <btn type="success" icon="glyphicon glyphicon-edit">[[:wiki:welcome]]</btn> <btn type="success" icon="glyphicon glyphicon-edit">[[:wiki:welcome]]</btn>
 +
 +\\
  
 ==== Sizes ==== ==== Sizes ====
Line 46: Line 51:
 \\ \\
  
-<code html>+<code html5>
 <btn type="primary" size="lg">Large button</btn> <btn type="primary" size="lg">Large button</btn>
 <btn type="default" size="lg">Large button</btn> <btn type="default" size="lg">Large button</btn>
Line 59: Line 64:
 <btn type="default" size="xs">Extra small button</btn> <btn type="default" size="xs">Extra small button</btn>
 </code> </code>
 +
 +\\
  
 ==== Block ==== ==== Block ====
Line 70: Line 77:
 \\ \\
  
-<code html>+<code html5>
 <btn type="primary" size="lg" block="true">Block level button</btn> <btn type="primary" size="lg" block="true">Block level button</btn>
 <btn type="default" size="lg" block="true">Block level button</btn> <btn type="default" size="lg" block="true">Block level button</btn>
 </code> </code>
  
 +\\
 +
 +
 +==== Active state ====
 +
 +Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. Bootstrap Wrapper Plugin detect automatically the active state of current page.
 +
 +<btn type="primary">[[button]]</btn> <btn type="default">[[panel]]</btn>
 +
 +<code html5>
 +<btn type="primary">[[button]]</btn> <btn type="default">[[panel]]</btn>
 +</code>
 +
 +\\
 +
 +==== Disabled state ====
 +
 +Make buttons look unclickable by fading them back with ''opacity''.
 +
 +<btn type="primary" disabled="true">[[button]]</btn> <btn type="default" disabled="true">[[panel]]</btn>
 +
 +<code html5>
 +<btn type="primary" disabled="true">[[button]]</btn> <btn type="default" disabled="true">[[panel]]</btn>
 +</code>
  
 ===== Options ===== ===== Options =====
Line 84: Line 115:
 | ''size'' | optional | ''lg'' ''sm'' | Button size | | ''size'' | optional | ''lg'' ''sm'' | Button size |
 | ''block'' | optional | ''true'' ''false'' | Block level buttons | | ''block'' | optional | ''true'' ''false'' | Block level buttons |
-| ''collapse'' | optional | | Target element selector to collapse (see [[.:collapse]]) |+| ''collapse'' | optional | | Target element selector to collapse (see [[collapse]]) | 
 +| ''disabled'' | optional | ''true'' ''false'' | Disable the button | 
 +| ''modal'' | optional | | Modal ID (see [[modal]]) |
 </datatable> </datatable>
  • wiki/plugin/bootswrapper/button.1455891762.txt.gz
  • Last modified: 8 years ago
  • by Giuseppe Di Terlizzi