Button
A Button. Trigger various Qlik actions such as clearing selections, or attaching a custom event.#
Usage#
Props#
| Prop | 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 | stringnull |
activeBackgroundColor | Background color on click | stringnull |
activeBackgroundSize | Background size on click | stringnull |
activeTransition | Transition on click | stringnull |
transition | transition | stringnull |
hoverBoxShadow | box shadow on hover | stringnull |
hoverBorder | border on hover | stringnull |
hoverBackground | background color on hover | stringnull |
Examples#
Simple Button example#
Large Buttons, different colors#
Theme API#
button#
Settings 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 |