mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-09 09:06:37 +02:00
23 lines
419 B
JavaScript
23 lines
419 B
JavaScript
export const addItemToStore = (value, element, id) => {
|
|
return {
|
|
type: 'ADD_ITEM',
|
|
value: value,
|
|
element: element,
|
|
id: id
|
|
}
|
|
};
|
|
|
|
export const removeItemFromStore = (id) => {
|
|
return {
|
|
type: 'REMOVE_ITEM',
|
|
id: id
|
|
}
|
|
};
|
|
|
|
export const selectItemFromStore = (id, value) => {
|
|
return {
|
|
type: 'SELECT_ITEM',
|
|
id: id,
|
|
value: value
|
|
}
|
|
}; |