Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
31db0c3
refactor(autocomplete): removed unnecessary comments and spaces and o…
wuda-io Jan 11, 2022
d1c0a97
build(autocomplete): autocomplete-data uses array now and better to a…
wuda-io Jan 11, 2022
38a3b45
Merge branch 'improved_select' into main
wuda-io Jan 12, 2022
06541f3
Merge branch 'improved_autocomplete' into main
wuda-io Jan 12, 2022
3c02e78
Merge branch 'improved_select' into main
wuda-io Jan 17, 2022
12bef75
Merge branch 'improved_select' into main
wuda-io Jan 18, 2022
fb6959f
build: added possibility for dynamic read function
wuda-io Jan 25, 2022
176a970
build: added checkbox and description to items and made selections an…
wuda-io Jan 25, 2022
af746d2
fix: multiselect is now possible and working with search
wuda-io Jan 26, 2022
cbdf33a
fix: added setValues method
wuda-io Jan 26, 2022
486789a
style: improved grid
wuda-io Jan 26, 2022
cfa499e
style: better display for images
wuda-io Jan 26, 2022
e9eb1fa
fix: fixed a shortcut because could not uglify script
wuda-io Jan 26, 2022
60de9c5
style: improved styling of dropdown items
wuda-io Jan 26, 2022
75b6cdf
style: fixed css styles which are generated
wuda-io Jan 26, 2022
e0bff1e
fix: single-select works now too and can be cleared by emptying it
wuda-io Jan 26, 2022
11a013c
fix: setValues accepts now only array of objects
wuda-io Jan 26, 2022
3d80708
fix: when clearing input it should trigger a changed event
wuda-io Jan 27, 2022
6b839b8
fix: added triggerChange Event
wuda-io Jan 27, 2022
96de073
Merge branch 'materializecss:main' into multiselect_autocomplete
wuda-io Apr 22, 2022
e7da699
Merge branch 'v2-dev' into multiselect_autocomplete
wuda-io Feb 20, 2023
a39eace
fix(autocomplete): tests and add documentation
wuda-io Feb 21, 2023
ca113ab
fix: autocomplete for chips and docu
wuda-io Feb 21, 2023
f11cc59
fix(chips): changed chip-data object to support ids, text and images
wuda-io Feb 21, 2023
e8ade27
docs(chips): reset property
wuda-io Feb 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/css/ghpages-materialize.css

Large diffs are not rendered by default.

38 changes: 23 additions & 15 deletions docs/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,21 @@
$('.sidenav').sidenav();
$('.tap-target').tapTarget();
$('input.autocomplete').autocomplete({
data: { Apple: null, Microsoft: null, Google: 'https://via.placeholder.com/250x250' }
minLength: 0,
data: [
{id: 12, text: "Apple"},
{id: 13, text: "Microsoft"},
{id: 42, text: "Google", image: 'http://placehold.it/250x250'}
]
});
$('input.autocomplete-multiple').autocomplete({
isMultiSelect: true,
minLength: 0,
data: [
{id: 12, text: "Apple"},
{id: 13, text: "Microsoft"},
{id: 42, text: "Google", image: 'http://placehold.it/250x250'}
]
});
$('input[data-length], textarea[data-length]').characterCounter();

Expand All @@ -196,15 +210,9 @@
$('.chips-initial').chips({
readOnly: true,
data: [
{
tag: 'Apple'
},
{
tag: 'Microsoft'
},
{
tag: 'Google'
}
{id: 12, text: "Apple"},
{id: 13, text: "Microsoft"},
{id: 42, text: "Google", image: 'http://placehold.it/250x250'}
]
});
$('.chips-placeholder').chips({
Expand All @@ -213,11 +221,11 @@
});
$('.chips-autocomplete').chips({
autocompleteOptions: {
data: {
Apple: null,
Microsoft: null,
Google: null
}
data: [
{id: 12, text: "Apple"},
{id: 13, text: "Microsoft"},
{id: 42, text: "Google", image: 'http://placehold.it/250x250'}
]
}
});

Expand Down
Loading