mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-15 12:16:11 +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,
|
|
});
|