Angular ToolBar Appearance
The ToolBar provides predefined appearance options which allow you to set different sizes and fill modes for the component.
Size
To change the default padding
of the ToolBar component, set the size
property. It accepts values of type ToolbarSize
.
The size
option supports the following values:
small
—Sets thepadding
of the elements to2px 8px
.medium
(Default)—Sets thepadding
of the elements to4px 8px
.large
—Sets thepadding
of the elements to6px 8px
.none
—Removes the styling related to the ToolBar sizing option.
The following example demonstrates how to define the ToolBar size.
Fill Mode
The ToolBar allows you to set different fill modes by using the fillMode
property. It accepts values of type ToolbarFillMode
.
The fillMode
option supports the following values:
solid
(Default)—Sets abackground color
andsolid borders
.flat
—Setstransparent background
andtransparent borders
.outline
—Sets atransparent background
andsolid borders
.none
—The none option removes the built-in fill mode styles. Allows for custombackground
andborder
styles.
The
fillMode
option only affects the appearance of the ToolBar component and does not propagate to the ToolBar tools. Each ToolBar tool has a dedicatedfillMode
option that can be defined individually.
The following example demonstrates how to define a fill mode only for the ToolBar and including the ToolBar tools.