Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-05-20 | Forgot one showValue | sp00n | |
2021-05-20 | Renamed to displayLabelWithValue to showValue | sp00n | |
2021-05-20 | Added a displayLabelWithValue option | sp00n | |
Setting displayLabelWithValue to true will display the value after the label in the dropdown. Also added a couple of missing semicolons. | |||
2021-05-20 | Update README.md | sp00n | |
2021-05-20 | Added the ability to set the label and value key names | sp00n | |
You can now set the names of the `label` and `value` keys in the options. They default to `label` and `value` to not break the current behavior, but you can also set them to `null`, so that you can use a simple object instead of an array of objects, just like in bootstrap-4-autocomplete. Examples: ``` const ac = new Autocomplete(field, { data: [{name: "entry1", text: "The first entry"}, {name: "entry2", text: "The second entry"}], label: "name", value: "text", onSelectItem: ({label, value}) => { console.log("user selected:", label, value); } }); const ac = new Autocomplete(field, { data: {entry1: "The first entry", entry2: "The second entry"}, label: null, value: null, onSelectItem: ({label, value}) => { console.log("user selected:", label, value); } }); ``` | |||
2021-05-19 | Merge pull request #4 from lukasjelonek/master | Evgeny Zinoviev | |
Fix bug: Navigation with cursor keys does not work | |||
2021-05-19 | Fix bug: Navigation with cursor keys does not work | Lukas Jelonek | |
data toggle field changed from `data-toggle` to `data-bs-toggle` | |||
2021-04-08 | Merge pull request #3 from CBke/arrowdownkey | Evgeny S | |
set focus to first suggestion by down arrow key | |||
2021-04-06 | Merge pull request #2 from CBke/dynamicdata | Evgeny S | |
render again if data has changed | |||
2021-03-31 | set focus to first suggestion by down arrow key | Christophe | |
2021-03-31 | render again if data has changed | Christophe | |
2021-02-01 | add example | Evgeny Zinoviev | |
2021-02-01 | fix issue #1 | Evgeny Zinoviev | |
2021-01-03 | initial commit | Evgeny Zinoviev | |