mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-17 21:16:34 +02:00
33 lines
441 B
JavaScript
33 lines
441 B
JavaScript
|
export const addItem = (
|
||
|
value,
|
||
|
label,
|
||
|
id,
|
||
|
choiceId,
|
||
|
groupId,
|
||
|
customProperties,
|
||
|
placeholder,
|
||
|
keyCode,
|
||
|
) => ({
|
||
|
type: 'ADD_ITEM',
|
||
|
value,
|
||
|
label,
|
||
|
id,
|
||
|
choiceId,
|
||
|
groupId,
|
||
|
customProperties,
|
||
|
placeholder,
|
||
|
keyCode,
|
||
|
});
|
||
|
|
||
|
export const removeItem = (id, choiceId) => ({
|
||
|
type: 'REMOVE_ITEM',
|
||
|
id,
|
||
|
choiceId,
|
||
|
});
|
||
|
|
||
|
export const highlightItem = (id, highlighted) => ({
|
||
|
type: 'HIGHLIGHT_ITEM',
|
||
|
id,
|
||
|
highlighted,
|
||
|
});
|