Button
#
A Button. Trigger various Qlik actions such as clearing selections, or attaching a custom event.#
Usage#
PropsProp | Description | Options / Example |
---|---|---|
type | The action on click of the button. If default, you can set a custom onClick function | oneOf 'clearSelections' 'back' 'forward' 'default' |
block | boolean | |
onClick | Click handler | function |
size | button size | oneOf 'tiny' 'small' 'medium' 'large' 'xlarge' |
color | Background color | string |
margin | margin, sets the margin css property | string '5px' |
width | sets the width css property | string '100%' |
fontColor | button font color | string |
borderRadius | radius of the button | string '8px' |
border | sets the border css property | string |
outline | button outline | string |
activeTransform | Transform css property on click | string null |
activeBackgroundColor | Background color on click | string null |
activeBackgroundSize | Background size on click | string null |
activeTransition | Transition on click | string null |
transition | transition | string null |
hoverBoxShadow | box shadow on hover | string null |
hoverBorder | border on hover | string null |
hoverBackground | background color on hover | string null |
#
Examples#
Simple Button example#
Large Buttons, different colors#
Theme API#
buttonSettings in button are below:
e.g. button.backgroundColor = 'red'
or
button.hover.backgroundColor = 'yellow'
Setting | Description | Options / Example |
---|---|---|
button | ||
backgroundColor | background color of the button | string |
fontColor | button font color | string |
border | button border | string |
margin | button margin | string |
radius | border radius | string |
shadow | box shadow | string |
padding | button paddding | string |
transform | button transform property | string |
fontWeight | font weight | string |
outline | button outline | string |
transition | transiton | string |
hover | button.hover | |
background | background on hover | string |
borderColor | border color on hover | string |
boxShadow | box shadow on hover | string |
backgroundColor | background color on hover | string |
border | border on hover | string |
active | button.active | |
transform | transform on button click | string |
backgroundColor | background color on button click | string |
backgroundSize | background size on button click | string |
transition | transition on button click | string |