mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-09 09:06:37 +02:00
22 lines
395 B
JavaScript
22 lines
395 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 updateItemInStore = (value) => {
|
|
return {
|
|
type: 'UPDATE_ITEM',
|
|
value: value
|
|
}
|
|
} |