When creating a plug in is it possible to add/remove two classes at one time? For example, in Semantic-UI to get something floated to the right you need to add “right floated” in that order. It is easy in a plug in to make it add/remove one class, and I can even make it add two classes, but I can’t make it remove those two classes. Any ideas? See the example below.
'Semantic-UI.button.floated' : {
type: 'select',
action: 'apply_class',
show_empty: true,
name: 'Floated',
options: [
{key: 'left', name: 'Left'},
{key: 'right', name: 'Right'}
]
},
What I would like is the following
'Semantic-UI.button.floated' : {
type: 'select',
action: 'apply_class',
show_empty: true,
name: 'Floated',
options: [
{key: 'left floated', name: 'Left'},
{key: 'right floated', name: 'Right'}
]
},
That will add the classes correctly but when I choose the option to remove them it doesn’t remove anything.