Skip to content

Commit

Permalink
chore: beta candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-lebleu committed Feb 29, 2024
1 parent c909488 commit 3877a41
Show file tree
Hide file tree
Showing 5 changed files with 834 additions and 286 deletions.
1 change: 0 additions & 1 deletion src/files/kompleter.json

This file was deleted.

25 changes: 13 additions & 12 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,25 @@
perPage: 10,
}
},
propertyToValue: null,
cache: 5000,
};

const options = {
animation: {
type: 'fadeIn',
duration: 500
},
cache: 5000,

fieldsToDisplay: [
'Name',
'CountryCode',
'Population'
],

propToMapAsValue: 'Name'
};

const d = {
data: [
let data = { data: [
{
"0": "Breda",
"1": "NLD",
Expand Down Expand Up @@ -182,14 +183,14 @@
"Population": "286000"
}
]
}
};

const cbs = {
onKeyup: (value, cb) => {
console.log('cb.onKeyup ', value);
console.log('I\'m doing scrappy stuffs with the data!');
console.log('You want the data? There is!');
cb(dataSet);
console.log('You want the data? There is!', data.data);
cb(data.data);
},
onSelect: (value) => {
console.log('cb.onSelect', value);
Expand All @@ -200,13 +201,13 @@
};

// Way 1
input.kompleter(d, options, cbs)
input.kompleter(options, data.data, cbs)

// Way 2
// kompleter(input, options);
// Way 2.1
// kompleter(input, d, cbs, options);

// Way 3
// kompleter('auto-complete', options);
// Way 2.2
// kompleter('auto-complete', d, cbs, options);

});
</script>
Expand Down
File renamed without changes.
Loading

0 comments on commit 3877a41

Please sign in to comment.