Toolbar - carstenschaefer/ImagerJs GitHub Wiki
Specifies the size of toolbar buttons and customization properties for tooltips.
Enabling the Plugin
plugins: [
'Rotate',
'Crop',
'Resize',
'Toolbar'
]
Configuration
pluginsConfig: {
Toolbar: {
toolbarSize: 35,
toolbarSizeTouch: 43
tooltipEnabled: true,
tooltipCss: {
color: 'white',
background: 'black'
}
}
}
- Optional setting. If not specified, the settings shown in the example will be used.
toolbarSize
:
- Specifies the size in px of ImagerJs' toolbar buttons when running on non-touch devices.
toolbarSizeTouch
:
- Specifies the size in px of ImagerJs' toolbar buttons when running on touch devices.
tooltipEnabled
:
- If set to
true
the tooltips are shown.
tooltipCss
:
color
:
- Specifies the tooltips' font color.
background
:
- Specifies the tooltips' background.