collapsible.js | |
bbop. | Implement the Bootstrap 3 collapse JS widget. |
bbop. | |
Functions | |
collapsible | Create the a frame for the functional part of a jQuery collapsible structure. |
to_string | Convert the collapsible object into a html-ized string. |
add_to | Add a contect section to the collapsible. |
empty | Empty all sections from the collapsible. |
get_id | Return the id if extant, null otherwise. |
get_section_id | Get the “real” section id by way of the “convenience” section id? |
Implement the Bootstrap 3 collapse JS widget. http://getbootstrap.com/javascript/#collapse
Functions | |
collapsible | Create the a frame for the functional part of a jQuery collapsible structure. |
to_string | Convert the collapsible object into a html-ized string. |
add_to | Add a contect section to the collapsible. |
empty | Empty all sections from the collapsible. |
get_id | Return the id if extant, null otherwise. |
get_section_id | Get the “real” section id by way of the “convenience” section id? |
bbop.html.collapsible = function( in_list, attrs )
Create the a frame for the functional part of a jQuery collapsible structure.
Input: [[title, string/*.to_string()], ...] Output: <div class="panel-group" id="accordion"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"> ... </a> </h4> </div> <div id="collapseOne" class="panel-collapse collapse in"> <div class="panel-body"> ... </div> </div> </div> ...
in_list | collapsible frame headers: [[title, string/*.to_string()], ...] |
attrs | [serially optional] attributes to apply to the new top-level div |
bbop.html.collapsible object
Also see: tag
Create the a frame for the functional part of a jQuery collapsible structure.
bbop.html.collapsible = function( in_list, attrs )
Convert the collapsible object into a html-ized string.
bbop.html.collapsible.prototype.to_string = function()
Add a contect section to the collapsible.
bbop.html.collapsible.prototype.add_to = function( section_info, content_blob )
Empty all sections from the collapsible.
bbop.html.collapsible.prototype.empty = function()
Return the id if extant, null otherwise.
bbop.html.collapsible.prototype.get_id = function()
Get the “real” section id by way of the “convenience” section id?
bbop.html.collapsible.prototype.get_section_id = function( sect_id )