Josh Johnson
|
6d9656bed2
|
Turn of spellcheck, autocomplete and autocorrect from input
|
2016-08-03 09:23:39 +01:00 |
|
Josh Johnson
|
b7484612eb
|
Configurable sorting fields
|
2016-08-03 07:43:35 +01:00 |
|
Josh Johnson
|
63bef1ee0e
|
Accessibility tweaks
|
2016-08-02 22:02:29 +01:00 |
|
Josh Johnson
|
5817ce3a0f
|
Enable() method
|
2016-08-02 21:10:53 +01:00 |
|
Josh Johnson
|
e497999841
|
Set choice groups via setChoice
|
2016-08-02 21:02:52 +01:00 |
|
Josh Johnson
|
0ce7c574ea
|
Ability to toggle flipped state
|
2016-08-02 19:39:24 +01:00 |
|
Josh Johnson
|
3585fdfd6a
|
Ensure focus is consisent across single select boxes with/without search
|
2016-08-02 14:40:36 +01:00 |
|
Josh Johnson
|
6fadbde79e
|
Ensure enter key can also open single select dropdown
|
2016-08-02 13:48:17 +01:00 |
|
Josh Johnson
|
da68a92f31
|
Merge branch 'pr-issue-8' of https://github.com/chymz/Choices into chymz-pr-issue-8
|
2016-08-02 13:32:13 +01:00 |
|
Josh Johnson
|
79c08ceff9
|
Documentation for 'getValue' method + housekeeping
|
2016-08-02 07:45:08 +01:00 |
|
Simon Babay
|
1758943d7c
|
getValue()
|
2016-08-01 21:42:50 +02:00 |
|
Simon Babay
|
1cb566a0f7
|
Merge fix
|
2016-08-01 21:30:31 +02:00 |
|
Simon Babay
|
8edb33f511
|
Merge remote-tracking branch 'refs/remotes/jshjohnson/master'
Conflicts:
assets/scripts/src/choices.js
|
2016-08-01 21:27:41 +02:00 |
|
Simon Babay
|
c6f9d95359
|
(select-one) Focus and hidden dropdown with keyboard navigation
|
2016-08-01 21:26:31 +02:00 |
|
Josh Johnson
|
677d3a5582
|
Add jQuery example to documentation
|
2016-08-01 20:00:24 +01:00 |
|
Simon Babay
|
c18b9f81e4
|
(select-one) fix : keep focus after item is selected
|
2016-08-01 16:48:40 +02:00 |
|
Josh Johnson
|
6a6988f71b
|
Disable touchstart event for now - causing issue with scrolling choices
|
2016-08-01 14:55:04 +01:00 |
|
Simon Babay
|
4e2b330659
|
Merged branch master into pr-issue-8
|
2016-08-01 15:50:08 +02:00 |
|
Simon Babay
|
3c1d0a615b
|
Merge master
|
2016-08-01 15:49:44 +02:00 |
|
Josh Johnson
|
431e328d3d
|
Resolve issue with single select box toggling
|
2016-08-01 14:46:51 +01:00 |
|
Simon Babay
|
8d3648e763
|
(select-one) search = false, click & show dropdown give focus
|
2016-08-01 15:44:01 +02:00 |
|
Simon Babay
|
611480ab3b
|
(select-one) search = false, on blur hide dropdown
|
2016-08-01 15:36:29 +02:00 |
|
Simon Babay
|
994e20a4c3
|
onKeyDown on containerOuter to enable keyboard navigation
|
2016-08-01 15:35:49 +02:00 |
|
Josh Johnson
|
780a865097
|
Click toggle single select boxes and use touchstart for touch devices (as well as mousedown)
|
2016-08-01 14:27:27 +01:00 |
|
Simon Babay
|
1c268a1e5d
|
(select-one) search = false, focus and keyboard navigation
|
2016-08-01 15:23:34 +02:00 |
|
Josh Johnson
|
e898309fb1
|
Sprucing up the demo page + scroll to top of option list on search
|
2016-07-31 22:48:36 +01:00 |
|
Josh Johnson
|
4968d73ede
|
Set value of select input based on choice
|
2016-07-31 21:05:17 +01:00 |
|
Josh Johnson
|
ca39e30684
|
Set choices directly via public function + callback on change
|
2016-07-31 20:02:46 +01:00 |
|
Josh Johnson
|
e667b61bf2
|
Only trim string values
|
2016-07-31 18:38:00 +01:00 |
|
Josh Johnson
|
aaf58a2108
|
Last child spacing
|
2016-07-30 16:10:35 +01:00 |
|
Josh Johnson
|
56d9f7d381
|
Add repo link to demo page
|
2016-07-30 16:07:03 +01:00 |
|
Josh Johnson
|
4d2f82ee44
|
Build
|
2016-07-30 16:03:34 +01:00 |
|
Josh Johnson
|
1e249295ce
|
Ability to define choices in config + minor tweaks
|
2016-07-30 16:03:20 +01:00 |
|
Josh Johnson
|
064d12400b
|
Ability to specify options via config
|
2016-07-30 15:50:29 +01:00 |
|
Josh Johnson
|
400a70e5cb
|
Options array in config
|
2016-07-30 15:12:22 +01:00 |
|
Josh Johnson
|
865ba7d485
|
Build
|
2016-07-14 23:21:28 +01:00 |
|
Josh Johnson
|
87ca00ee66
|
Further single select box tests
|
2016-07-13 21:40:59 +01:00 |
|
Josh Johnson
|
db5d91517a
|
Resolve typo
|
2016-07-13 20:11:44 +01:00 |
|
Josh Johnson
|
edad6e7638
|
Array from polyfill - may not need
|
2016-07-11 15:27:58 +01:00 |
|
Josh Johnson
|
1934c7fa50
|
Seperate base and choices css
|
2016-07-11 09:46:48 +01:00 |
|
Josh Johnson
|
6c753b1078
|
Further test coverage
|
2016-07-02 14:48:20 +01:00 |
|
Josh Johnson
|
c8337f3f67
|
Use Phantom for testing
|
2016-07-02 13:50:24 +01:00 |
|
Josh Johnson
|
712c8cf801
|
Tests
|
2016-07-02 13:04:38 +01:00 |
|
Josh Johnson
|
ea7a7c2b22
|
Render callback
|
2016-07-02 11:11:16 +01:00 |
|
Josh Johnson
|
f64a6295ad
|
Remote source country list example
|
2016-06-30 22:25:00 +01:00 |
|
Josh Johnson
|
283324c65b
|
Add backspace to search keycode regex
|
2016-06-30 22:08:40 +01:00 |
|
Josh Johnson
|
ea2669312f
|
Only add placeholder items for single select boxes
|
2016-06-30 14:11:09 +01:00 |
|
Josh Johnson
|
6a0ed866cf
|
Refactoring + rename selected to highlighted
|
2016-06-30 13:57:56 +01:00 |
|
Josh Johnson
|
b45715c5be
|
Sort choices by label
|
2016-06-29 14:47:58 +01:00 |
|
Josh Johnson
|
a862e4a00a
|
Resolve ajax choices not showing
|
2016-06-28 14:27:25 +01:00 |
|
Josh Johnson
|
c1278e8f0d
|
Further updating of terminology
|
2016-06-27 14:57:33 +01:00 |
|
Josh Johnson
|
a2e45209a7
|
Terminology updates (options -> choices) && documentation
|
2016-06-27 14:46:12 +01:00 |
|
Josh Johnson
|
6a9f2cb354
|
Documentation + minor fixes
|
2016-06-21 23:06:23 +01:00 |
|
Josh Johnson
|
c9671c4625
|
Build
|
2016-06-21 21:36:02 +01:00 |
|
Josh Johnson
|
278a693886
|
Allow chaining + private/public function differentation + set/clear value methods
|
2016-06-08 14:45:29 +01:00 |
|
Josh Johnson
|
4671d37a51
|
Set value/clear value methods - to be implemented
|
2016-06-07 14:26:52 +01:00 |
|
Josh Johnson
|
1a9622aaff
|
Eliminate excessive searches
|
2016-06-07 14:20:37 +01:00 |
|
Josh Johnson
|
d9cb983262
|
Minor improvements
|
2016-06-02 14:41:53 +01:00 |
|
Josh Johnson
|
851ddea81c
|
Psuedo fixed search box
|
2016-06-02 14:37:06 +01:00 |
|
Josh Johnson
|
7cfe84e9d1
|
Ability to disable search
|
2016-06-01 18:56:08 +01:00 |
|
Josh Johnson
|
f361e4b34d
|
Ability to add both attribute values and object values + housekeeping
|
2016-06-01 18:45:35 +01:00 |
|
Josh Johnson
|
110741aed3
|
Search within dropdown on single search boxes
|
2016-05-18 22:40:32 +01:00 |
|
Josh Johnson
|
e2ff2d8f97
|
Persistent selectable state
|
2016-05-16 14:53:56 +01:00 |
|
Josh Johnson
|
16668b3bd1
|
Reference correct file
|
2016-05-16 14:49:18 +01:00 |
|
Josh Johnson
|
002da48b33
|
Set width of input as you're typing + notice of unique values
|
2016-05-16 14:46:04 +01:00 |
|
Josh Johnson
|
51ee98f4c8
|
Minor bordering styles
|
2016-05-12 09:05:40 +01:00 |
|
Josh Johnson
|
d87a3f8171
|
Close button styling
|
2016-05-11 23:17:22 +01:00 |
|
Josh Johnson
|
964a8e709b
|
Test for right click
|
2016-05-11 14:51:32 +01:00 |
|
Josh Johnson
|
1b9e356033
|
Build
|
2016-05-11 14:29:26 +01:00 |
|
Josh Johnson
|
fc1b945ac9
|
Render select options based on items chosen
|
2016-05-11 14:25:34 +01:00 |
|
Josh Johnson
|
23ed4d9ecf
|
Refactor rendering
|
2016-05-10 09:02:59 +01:00 |
|
Josh Johnson
|
7c4ec26479
|
Choices improvements
|
2016-05-08 13:22:25 +01:00 |
|
Josh Johnson
|
543ac2226f
|
Option group single select box
|
2016-05-08 12:27:08 +01:00 |
|
Josh Johnson
|
c76088fc8f
|
Mousedown event instead of click for reacting before blur triggers
|
2016-05-08 12:22:56 +01:00 |
|
Josh Johnson
|
ec8c324383
|
Populate options from ajax api
|
2016-05-08 00:02:52 +01:00 |
|
Josh Johnson
|
57ad1dc31c
|
Destroy method tweaks
|
2016-05-07 14:14:05 +01:00 |
|
Josh Johnson
|
0b27522e2b
|
Dropdown on click fix
|
2016-05-07 13:34:59 +01:00 |
|
Josh Johnson
|
dced1bb6e4
|
Notice for text inputs when typing
|
2016-05-07 13:30:07 +01:00 |
|
Josh Johnson
|
fc64449874
|
Close dropdown on enter for single select boxes
|
2016-05-07 12:48:27 +01:00 |
|
Josh Johnson
|
c4ed167a02
|
Single select box support
|
2016-05-07 12:36:50 +01:00 |
|
Josh Johnson
|
db5d35790c
|
More descriptive state classes
|
2016-05-05 21:46:56 +01:00 |
|
Josh Johnson
|
877a688275
|
Merge and build
|
2016-05-05 21:34:06 +01:00 |
|
Josh Johnson
|
af26aaaa48
|
Will change dropdown
|
2016-05-05 21:32:38 +01:00 |
|
Josh Johnson
|
158902f8ee
|
Animate dropdown scroll
|
2016-05-05 21:31:09 +01:00 |
|
Josh Johnson
|
5cf4368ad4
|
Test next state to previous state to avoid needless rendering
|
2016-05-04 14:31:29 +01:00 |
|
Josh Johnson
|
b34db1920a
|
Abstract store getters into own class
|
2016-05-04 09:02:22 +01:00 |
|
Josh Johnson
|
345fe885c5
|
Better handling of option highlighting + Fuse search implementation
|
2016-05-03 21:31:05 +01:00 |
|
Josh Johnson
|
c359ed3e47
|
Test Fuse for fuzzy searching
|
2016-05-03 14:55:38 +01:00 |
|
Josh Johnson
|
d4cf42c33e
|
Minor tweaks
|
2016-05-02 22:21:34 +01:00 |
|
Josh Johnson
|
1bc55520e7
|
Reduce re-rendering
|
2016-05-02 21:53:21 +01:00 |
|
Josh Johnson
|
39fff5dd34
|
Highlight position function + scroll dropdown based on highlighted option
|
2016-05-02 21:39:33 +01:00 |
|
Josh Johnson
|
5aaf5ad117
|
Attach template functions to options
|
2016-05-02 15:29:05 +01:00 |
|
Josh Johnson
|
56cd08d81c
|
Highlighting options + traversing through option els
|
2016-05-02 13:22:53 +01:00 |
|
Josh Johnson
|
336ffc9e87
|
Setup template function + remove unused utils
|
2016-05-02 12:23:12 +01:00 |
|
Josh Johnson
|
2ccac3083d
|
Open dropdown if typing
|
2016-04-29 18:23:06 +01:00 |
|
Josh Johnson
|
17e00f10fb
|
Documentation + refactoring
|
2016-04-29 18:06:46 +01:00 |
|
Josh Johnson
|
f661661565
|
Use single generate input function
|
2016-04-29 17:11:20 +01:00 |
|
Josh Johnson
|
1f547bb065
|
Build
|
2016-04-29 15:18:53 +01:00 |
|
Josh Johnson
|
93f69eb3da
|
Empty dropdown handling + highlighting item improvments
|
2016-04-28 20:49:49 +01:00 |
|
Josh Johnson
|
cbfe38e937
|
Use DOM querying for highlighting options - less rendering
|
2016-04-28 15:30:43 +01:00 |
|
Josh Johnson
|
9dc23e86bf
|
More higlighting option tweaks
|
2016-04-27 16:41:30 +01:00 |
|
Josh Johnson
|
35b9670ac5
|
Foundation work for highlighting options
|
2016-04-26 14:36:02 +01:00 |
|
Josh Johnson
|
04ab5f6a98
|
Attach choices to window
|
2016-04-25 18:00:30 +01:00 |
|
Josh Johnson
|
eb80a373df
|
Reinstate option updating on item removal
|
2016-04-25 14:59:58 +01:00 |
|
Josh Johnson
|
d07517fe96
|
Semi-working filtering of options based on input value + restore ability to remove item based on back key
|
2016-04-22 19:45:50 +01:00 |
|
Josh Johnson
|
c10ac458ec
|
Use active/flipped classes + store input type
|
2016-04-22 09:02:42 +01:00 |
|
Josh Johnson
|
7774e8bb0d
|
Active state handling plus positioning of dropdown
|
2016-04-21 14:43:17 +01:00 |
|
Josh Johnson
|
5ab0075908
|
Shift key support
|
2016-04-17 12:09:46 +01:00 |
|
Josh Johnson
|
e1d138ba42
|
Reinstate method to remove item by value + general refactoring
|
2016-04-17 12:02:28 +01:00 |
|
Josh Johnson
|
ed66199c35
|
Move event handling functions outside key events
|
2016-04-17 11:23:38 +01:00 |
|
Josh Johnson
|
f63652471c
|
Handling option groups + label/value differentation
|
2016-04-16 17:06:27 +01:00 |
|
Josh Johnson
|
fc0a72d2a2
|
Set placeholders on select box
|
2016-04-15 09:19:02 +01:00 |
|
Josh Johnson
|
818450dfa5
|
Observe store function - to be implemented
|
2016-04-14 14:54:47 +01:00 |
|
Josh Johnson
|
9679a42966
|
Associate options and items
|
2016-04-14 14:43:36 +01:00 |
|
Josh Johnson
|
c7ff02146a
|
Update to do list
|
2016-04-13 14:43:27 +01:00 |
|
Josh Johnson
|
ec5ca95d0d
|
Build
|
2016-04-13 14:42:23 +01:00 |
|
Josh Johnson
|
3d2e998f34
|
Use document fragments for generating lists
|
2016-04-13 14:40:41 +01:00 |
|
Josh Johnson
|
94475e8e1a
|
Correct value when pressing backspace + getter methods
|
2016-04-13 14:20:08 +01:00 |
|
Josh Johnson
|
6ac55c9e37
|
Use const instead of let where possible + selecting options
|
2016-04-12 22:42:56 +01:00 |
|
Josh Johnson
|
cd43799258
|
Less querying of the DOM - use state instead + deselect all items if click outside
|
2016-04-12 20:16:36 +01:00 |
|
Josh Johnson
|
4947da2b43
|
Only remove items by object - focus input if click registered within container
|
2016-04-12 19:45:41 +01:00 |
|
Josh Johnson
|
1f0b0e467f
|
Remove all items refactoring
|
2016-04-12 14:54:07 +01:00 |
|
Josh Johnson
|
673e937327
|
Render dropdown from store
|
2016-04-12 14:31:07 +01:00 |
|
Josh Johnson
|
6d51b5c164
|
Seperate reducers for dropdown choices and items + callbacks
|
2016-04-12 14:10:07 +01:00 |
|
Josh Johnson
|
9cbe882c41
|
Allow for deep merging of objects
|
2016-04-11 14:51:20 +01:00 |
|
Josh Johnson
|
7dc30abff7
|
Configurable class names
|
2016-04-11 14:13:50 +01:00 |
|
Josh Johnson
|
f05b49578a
|
Add dropdown items
|
2016-04-10 22:54:56 +01:00 |
|
Josh Johnson
|
c821c923c9
|
Ability to pass multiple elements to instance
|
2016-04-10 21:23:42 +01:00 |
|
Josh Johnson
|
210744a301
|
Test for removeItems options to enable/disable selecting items
|
2016-04-09 11:55:33 +01:00 |
|
Josh Johnson
|
4b889f9e4d
|
Toggling dropdown menu
|
2016-04-09 11:30:08 +01:00 |
|
Josh Johnson
|
0c9238b72c
|
Better use of data attributes + dropdown styling + getter methods
|
2016-04-08 22:33:13 +01:00 |
|
Josh Johnson
|
b9bae53e53
|
Remove item based on value
|
2016-04-08 09:07:41 +01:00 |
|
Josh Johnson
|
50c53ce3ad
|
Bit of styling
|
2016-04-07 19:44:16 +01:00 |
|
Josh Johnson
|
fb38d7bf55
|
Ability to assign preset items through constructor
|
2016-04-07 13:57:57 +01:00 |
|
Josh Johnson
|
64764559f5
|
Housekeeping
|
2016-04-04 22:52:49 +01:00 |
|
Josh Johnson
|
0676828ac3
|
Assign element value based on store
|
2016-04-04 21:44:32 +01:00 |
|
Josh Johnson
|
d8620f433f
|
Render items from store
|
2016-04-04 14:43:32 +01:00 |
|
Josh Johnson
|
174aa399c2
|
Handle click events on list items + set active status in store + set select status in store
|
2016-04-03 23:07:10 +01:00 |
|
Josh Johnson
|
c4598aeccb
|
Working data entry and removal from store'
|
2016-03-31 14:51:41 +01:00 |
|
Josh Johnson
|
9f778fffc9
|
Setup foundation for redux
|
2016-03-30 15:04:21 +01:00 |
|
Josh Johnson
|
526fe9fd85
|
Append/prepend value options + ability to filter by regex
|
2016-03-24 14:42:03 +00:00 |
|
Josh Johnson
|
42e2439c1e
|
Callbacks on adding/removing items
|
2016-03-23 23:00:32 +00:00 |
|
Josh Johnson
|
53c3af05bd
|
Store key codes in constants
|
2016-03-22 22:53:34 +00:00 |
|
Josh Johnson
|
4f79531b12
|
Option to disable removing items + disabling editing items when other items are selected
|
2016-03-22 22:47:29 +00:00 |
|
Josh Johnson
|
ced83cd728
|
Maintain input height when adding items + toggling select all
|
2016-03-22 14:36:01 +00:00 |
|
Josh Johnson
|
ff7521b090
|
Handle optgroups - initial foundation work
|
2016-03-21 22:45:49 +00:00 |
|
Josh Johnson
|
a3bda138a9
|
Begun handling select element + disabled state
|
2016-03-21 19:27:52 +00:00 |
|
Josh Johnson
|
3f3580bb13
|
Ability to edit last item in list
|
2016-03-21 18:53:26 +00:00 |
|
Josh Johnson
|
6228463c71
|
Build
|
2016-03-18 12:26:38 +00:00 |
|
Josh Johnson
|
a247c0c031
|
Custom value delimiter
|
2016-03-18 11:13:47 +00:00 |
|
Josh Johnson
|
152b4283dc
|
Don't store input values as array for text inputs + handle different input types
|
2016-03-18 11:05:50 +00:00 |
|
Josh Johnson
|
449b735461
|
Initial styling + ability to highlight all and remove highlighted items
|
2016-03-17 23:10:16 +00:00 |
|
Josh Johnson
|
ecee8cff47
|
Handle on one element per instance + remove list items on back space
|
2016-03-17 15:00:22 +00:00 |
|
Josh Johnson
|
8ea38d8d6b
|
Predefine values + limiting + updating hidden input values
|
2016-03-16 23:15:03 +00:00 |
|
Josh Johnson
|
19c429bca8
|
Assign item list values to hidden input value array
|
2016-03-16 20:32:19 +00:00 |
|
Josh Johnson
|
d0d8656ca8
|
Add tags to list proof of concept
|
2016-03-16 20:24:11 +00:00 |
|
Josh Johnson
|
d39fcde893
|
Add event listeners to each element in this.elements + wrap them in div
|
2016-03-16 14:41:13 +00:00 |
|
Josh Johnson
|
60a1bfc0a7
|
Set options + fire event listeners
|
2016-03-16 09:03:59 +00:00 |
|
Josh Johnson
|
41efa76a5b
|
API structuring + webpack config
|
2016-03-15 22:42:10 +00:00 |
|
Josh Johnson
|
8651d69b42
|
Class structuring + event listeners
|
2016-03-15 14:39:22 +00:00 |
|
Josh Johnson
|
160400b1fd
|
Readme
|
2016-03-15 14:10:50 +00:00 |
|