I'm trying to use tail.select in my project and while the select is being rendered, none of the options works (except strings). For example, cannot disable search as below:
document.addEventListener("DOMContentLoaded", function(){
tail.select("#owner-select",
{
search: false,
});
});
Any ideas why the initialized select still has search enabled?
I'm trying to use tail.select in my project and while the select is being rendered, none of the options works (except strings). For example, cannot disable search as below:
document.addEventListener("DOMContentLoaded", function(){
tail.select("#owner-select",
{
search: false,
});
});
Any ideas why the initialized select still has search enabled?
Share asked Mar 7 at 18:17 twktwk 3,1202 gold badges28 silver badges36 bronze badges1 Answer
Reset to default 0Found it! The wiki is outdated (from 2021) and the options I was looking for were to be found in source code:
const defaultOptions = {
multiTags: false,
multiCounter: true,
multiLimit: Infinity,
minSelectionLimit: 0,
theme: 'light', // light|dark
classNames: 'tail-default',
buttonAll: true,
buttonNone: true,
buttonClose: false,
buttonCloseText: '✕',
strings: {
all: "All",
none: "None",
placeholder: "Select an option...",
search: "Type in to search...",
limitExceded: "You can only select {0} option(s)!",
minimumReached: "You need to select at least {0} option(s)!",
}
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744913826a4600711.html
评论列表(0条)