forked from Choices-js/Choices
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to 2 space indentation + editorconfig
- Loading branch information
Josh Johnson
committed
Sep 5, 2016
1 parent
9bb9e0b
commit d40841d
Showing
11 changed files
with
2,554 additions
and
2,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
export const addItem = (value, label, id, choiceId, activateOptions) => { | ||
return { | ||
type: 'ADD_ITEM', | ||
value, | ||
label, | ||
id, | ||
choiceId, | ||
activateOptions, | ||
}; | ||
return { | ||
type: 'ADD_ITEM', | ||
value, | ||
label, | ||
id, | ||
choiceId, | ||
activateOptions, | ||
}; | ||
}; | ||
|
||
export const removeItem = (id, choiceId) => { | ||
return { | ||
type: 'REMOVE_ITEM', | ||
id, | ||
choiceId, | ||
}; | ||
return { | ||
type: 'REMOVE_ITEM', | ||
id, | ||
choiceId, | ||
}; | ||
}; | ||
|
||
export const highlightItem = (id, highlighted) => { | ||
return { | ||
type: 'HIGHLIGHT_ITEM', | ||
id, | ||
highlighted, | ||
}; | ||
return { | ||
type: 'HIGHLIGHT_ITEM', | ||
id, | ||
highlighted, | ||
}; | ||
}; | ||
|
||
export const addChoice = (value, label, id, groupId, disabled) => { | ||
return { | ||
type: 'ADD_CHOICE', | ||
value, | ||
label, | ||
id, | ||
groupId, | ||
disabled, | ||
}; | ||
return { | ||
type: 'ADD_CHOICE', | ||
value, | ||
label, | ||
id, | ||
groupId, | ||
disabled, | ||
}; | ||
}; | ||
|
||
export const filterChoices = (results) => { | ||
return { | ||
type: 'FILTER_CHOICES', | ||
results, | ||
}; | ||
return { | ||
type: 'FILTER_CHOICES', | ||
results, | ||
}; | ||
}; | ||
|
||
export const activateChoices = (active = true) => { | ||
return { | ||
type: 'ACTIVATE_CHOICES', | ||
active, | ||
}; | ||
return { | ||
type: 'ACTIVATE_CHOICES', | ||
active, | ||
}; | ||
}; | ||
|
||
export const addGroup = (value, id, active, disabled) => { | ||
return { | ||
type: 'ADD_GROUP', | ||
value, | ||
id, | ||
active, | ||
disabled, | ||
}; | ||
return { | ||
type: 'ADD_GROUP', | ||
value, | ||
id, | ||
active, | ||
disabled, | ||
}; | ||
}; | ||
|
||
export const clearAll = () => { | ||
return { | ||
type: 'CLEAR_ALL', | ||
}; | ||
return { | ||
type: 'CLEAR_ALL', | ||
}; | ||
}; |
Oops, something went wrong.