Toolbar
Component is build based on Angular Material Toolbar
Toolbar consists of six sections in html template:
info;
content;
actions;
close;
toggle;
collapsible.
Here it is default order of sections, but they can be reordered by each section order property. There are six ordering names:
first-section;
second-section;
third-section;
fourth-section;
fifth-section;
sixth-section
This is default sections order values. If it is needed to reorder sections, then order properties must be set logically correct.
Usage
app.html
app.ts
app.scss
Toolbar input properties
Attr
Sub attr
Type
Details
template
-
string
Name of toolbar template. Optional. Means name with css class that have all needed styles for toolbar elements.
info
object
Optional info section
show
boolean
To show / hide info section
icon
IconModel
IconModel data for info section icon
order
string
Order of info section. Default: first-section.
content
object
Optional content section
title
string
Title for content section
order
string
Order of content section. Default: second-section.
actions
object
Optional actions section
show
boolean
To show / hide content section
menu
MenuModel
MenuModel component for actions section
order
string
Order of content section. Default: third-section.
close
object
Optional section for close icon
show
boolean
To show / hide close icon section
icon
IconModel
IconModel data for close button section icon
order
string
Order of close section. Default: fourth-section.
toggle
object
Optional section for toggle icons
show
boolean
To show / hide toggle icons section
minimizeIcon
IconModel
IconModel data for minimizeIcon button section icon
maximizeIcon
IconModel
IconModel data for maximizeIcon button section icon
order
string
Order of toggle section. Default: fifth-section.
collapsible
object
Optional section for collapsible icon
show
boolean
To show / hide collapsible icon section
expanded
boolean
To set toolbar to be expanded
icon
IconModel
IconModel data for info section icon
order
string
Order of toggle section. Default: sixth-section.
Toolbar styling properties
Attr
Type
Details
container
StylingModel
Styling by type StylingModel
toolbar
StylingModel
StylingModel for md-toolbar
info
StylingModel
StylingModel for info section
infoIconStyling
IconStylingModel
IconStylingModel for info icon
content
StylingModel
StylingModel for content section
actions
StylingModel
StylingModel for actions section
actionsStyling
MenuStylingModel
MenuStylingModel for actions section menu
toggle
StylingModel
StylingModel for toggle section
minimizeIconStyling
IconStylingModel
IconStylingModel for minimize icon
maximizeIconStyling
IconStylingModel
IconStylingModel for maximize icon
collapsible
StylingModel
StylingModel for collapsible section
collapsibleIconStyling
IconStylingModel
IconStylingModel for collapsible icon
close
StylingModel
StylingModel for close section
closeIconStyling
IconStylingModel
IconStylingModel for close icon
Toolbar output properties
Attr
Detailsprevious
cfOnToolbarInfo
Emit event on info icon click with click event object
toolbarActionItemEvent
Emit action menu item event with object of clicked menu item
cfOnToolbarToggle
Emit toggle event with boolean value of toolbar expanded state
cfOnToolbarMaximize
Emit event with boolean value of toolbar maximized state
Last updated