2015-05-29 11:47:32 +00:00
# Toolbar
2015-08-13 11:07:10 +00:00
A scrollable set of buttons aligned to the left with a fixed right section.
2015-05-29 11:47:32 +00:00
2015-08-26 10:24:37 +00:00
All toolbar items (`toolbar-item`) should have a fixed width, except for the primary item (`toolbar-primary`) which will stretch. In the October backend you can use the `data-calculate-width` attribute to have these widths calculated dynamically for you.
2015-08-21 07:23:03 +00:00
## Basic toolbar
2015-07-30 09:46:30 +00:00
2015-08-26 10:24:37 +00:00
< div class = "control-toolbar" >
< div class = "toolbar-item toolbar-primary" >
2015-05-29 11:47:32 +00:00
< div data-control = "toolbar" >
2015-08-21 07:23:03 +00:00
< button type = "button" class = "btn btn-primary oc-icon-plus" > Create post< / button >
< button type = "button" class = "btn btn-default oc-icon-copy" > Copy< / button >
< button type = "button" class = "btn btn-default oc-icon-trash" > Delete< / button >
< button type = "button" class = "btn btn-default oc-icon-magic" > Publish< / button >
< button type = "button" class = "btn btn-default oc-icon-power-off" > Unpublish< / button >
2015-05-29 11:47:32 +00:00
2015-08-21 07:23:03 +00:00
< button type = "button" class = "btn btn-default oc-icon-clock-o" > Timer< / button >
< button type = "button" class = "btn btn-default oc-icon-mail-reply-all" > Send by email< / button >
< button type = "button" class = "btn btn-default oc-icon-hdd-o" > Archive< / button >
< / div >
< / div >
2015-08-26 10:24:37 +00:00
< div class = "toolbar-item" style = "width: 110px" >
< input placeholder = "search..." type = "text" name = "" value = "" class = "form-control icon search" / >
2015-08-21 07:23:03 +00:00
< / div >
< / div >
### Button groups
2015-08-26 10:24:37 +00:00
< div class = "control-toolbar" >
< div class = "toolbar-item toolbar-primary" >
2015-08-21 07:23:03 +00:00
< div data-control = "toolbar" >
2015-05-29 11:47:32 +00:00
< div class = "btn-group" >
2015-08-21 07:23:03 +00:00
< button type = "button" class = "btn btn-default oc-icon-mail-reply-all" > Send by email< / button >
< button type = "button" class = "btn btn-default oc-icon-hdd-o" > Archive< / button >
2015-05-29 11:47:32 +00:00
< / div >
2015-08-21 07:23:03 +00:00
< / div >
< / div >
2015-08-26 10:24:37 +00:00
< div class = "toolbar-item" style = "width: 110px" >
< input placeholder = "search..." type = "text" name = "" value = "" class = "form-control icon search" / >
2015-08-21 07:23:03 +00:00
< / div >
< / div >
2015-05-29 11:47:32 +00:00
2015-08-21 07:23:03 +00:00
### Button with Tooltips
2015-05-29 11:47:32 +00:00
2015-08-26 10:24:37 +00:00
< div class = "control-toolbar" >
< div class = "toolbar-item toolbar-primary" >
2015-08-21 07:23:03 +00:00
< div data-control = "toolbar" >
< button
type="button"
class="btn btn-default oc-icon-download"
title="Hold down shift for more options"
data-control="tooltip"
data-placement="bottom"
data-container="body">
Export
< / button >
< / div >
< / div >
2015-08-26 10:24:37 +00:00
< div class = "toolbar-item" style = "width: 110px" >
< input placeholder = "search..." type = "text" name = "" value = "" class = "form-control icon search" / >
2015-08-21 07:23:03 +00:00
< / div >
< / div >
### Dropdown buttons
2015-08-26 10:24:37 +00:00
< div class = "control-toolbar" >
< div class = "toolbar-item toolbar-primary" >
2015-08-21 07:23:03 +00:00
< div data-control = "toolbar" >
< div class = "dropdown dropdown-fixed" >
< button
type="button"
class="btn btn-default oc-icon-users"
data-toggle="dropdown">
Assign selected to...
< / button >
< ul class = "dropdown-menu" data-dropdown-title = "Assign selected to..." >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-user" > Sally< / a > < / li >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-user" > Steve< / a > < / li >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-user" > Justin< / a > < / li >
< / ul >
2015-05-29 11:47:32 +00:00
< / div >
2015-08-21 07:23:03 +00:00
2015-05-29 11:47:32 +00:00
< / div >
< / div >
2015-08-26 10:24:37 +00:00
< div class = "toolbar-item" style = "width: 110px" >
< input placeholder = "search..." type = "text" name = "" value = "" class = "form-control icon search" / >
2015-05-29 11:47:32 +00:00
< / div >
2015-07-30 09:46:30 +00:00
< / div >
2015-08-21 07:23:03 +00:00
## Editor toolbar
2015-07-30 09:46:30 +00:00
< div class = "layout control-toolbar editor-toolbar" >
< div class = "layout-cell toolbar-item" >
< div data-control = "toolbar" >
<!-- Dropdown item -->
< div class = "dropdown dropdown-fixed" >
< button
type="button"
2016-05-24 19:15:34 +00:00
class="btn"
2015-07-30 09:46:30 +00:00
title="Formatting"
data-toggle="dropdown"
data-control="tooltip"
data-placement="bottom"
2016-05-24 19:15:34 +00:00
data-container="body">
< i class = "icon-paragraph" > < / i >
< / button >
2015-07-30 09:46:30 +00:00
< ul class = "dropdown-menu" data-dropdown-title = "Formatting" >
2015-08-21 07:23:03 +00:00
< li > < a href = "#" tabindex = "-1" class = "oc-icon-quote-right" > Quote< / a > < / li >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-code" > Code< / a > < / li >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-header" > Header 1< / a > < / li >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-header" > Header 2< / a > < / li >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-header" > Header 3< / a > < / li >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-header" > Header 4< / a > < / li >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-header" > Header 5< / a > < / li >
< li > < a href = "#" tabindex = "-1" class = "oc-icon-header" > Header 6< / a > < / li >
2015-07-30 09:46:30 +00:00
< / ul >
< / div >
<!-- Item with tooltip -->
< button
type="button"
2016-05-24 19:15:34 +00:00
class="btn"
2015-07-30 09:46:30 +00:00
title="Bold"
data-control="tooltip"
data-placement="bottom"
2016-05-24 19:15:34 +00:00
data-container="body">
< i class = "icon-bold" > < / i >
< / button >
2015-07-30 09:46:30 +00:00
<!-- Disabled item -->
2016-05-24 19:15:34 +00:00
< button type = "button" disabled class = "btn" >
< i class = "icon-italic" > < / i >
< / button >
2015-07-30 09:46:30 +00:00
2016-05-24 19:15:34 +00:00
< button type = "button" class = "btn" >
< i class = "icon-list-ul" > < / i >
< / button >
< button type = "button" class = "btn" >
< i class = "icon-list-ol" > < / i >
< / button >
< button type = "button" class = "btn" >
< i class = "icon-link" > < / i >
< / button >
< button type = "button" class = "btn" >
< i class = "icon-minus" > < / i >
< / button >
2015-07-30 09:46:30 +00:00
< / div >
< / div >
2015-08-26 10:24:37 +00:00
< div class = "toolbar-item" style = "width: 80px" >
2015-07-30 09:46:30 +00:00
< button type = "button" class = "btn oc-icon-eye" > < / button >
< button type = "button" class = "btn oc-icon-expand" > < / button >
< / div >
2016-05-24 19:15:34 +00:00
< / div >