mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactored ToggleButton
This commit is contained in:
parent
69325de4e8
commit
9ce35574a8
2 changed files with 7 additions and 13 deletions
|
@ -4,17 +4,11 @@ const classes = {
|
|||
root: ({ instance, props }) => [
|
||||
'p-togglebutton p-component',
|
||||
{
|
||||
'p-highlight': instance.active,
|
||||
'p-togglebutton-checked': instance.active,
|
||||
'p-invalid': props.invalid
|
||||
}
|
||||
],
|
||||
icon: ({ instance, props }) => [
|
||||
'p-togglebutton-icon',
|
||||
{
|
||||
'p-togglebutton-icon-left': props.iconPos === 'left' && instance.label,
|
||||
'p-togglebutton-icon-right': props.iconPos === 'right' && instance.label
|
||||
}
|
||||
],
|
||||
icon: 'p-togglebutton-icon',
|
||||
label: 'p-togglebutton-label'
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue