It looks like this package uses deep-assign under the hood, which does not merge in function values:
var deepAssign = require("deep-assign")
deepAssign({ templates: { suggestion: true } }, { templates: { suggestion: () => {} } })
via https://npm.runkit.com/deep-assign
This makes it impossible to change the suggestion template which is used to control the display text of suggestions during autocomplete:
let options = {
templates: {
suggestion: entry => entry.name
}
}
<AgAutocomplete options={options} />
Additionally, deep-assign has been deprecated, and the author recommends using something like merge-options.
It looks like this package uses
deep-assignunder the hood, which does not merge in function values:via https://npm.runkit.com/deep-assign
This makes it impossible to change the suggestion template which is used to control the display text of suggestions during autocomplete:
Additionally, deep-assign has been deprecated, and the author recommends using something like
merge-options.