selectize.js

Pre-fill selectize menu?

空扰寡人 提交于 2019-12-11 16:52:07
问题 I have a selectize-ng menu: <input type="text" selectize="usersSelect.options" options="users" ng-model="users.selected" /> "users" is my array of objects. This menu works perfectly, I can select from the menu, type-ahead, and get tokenized names. My controller options are: $scope.usersSelect = { options: { valueField: 'full_name', labelField: 'full_name', searchField: ['full_name'], plugins: ['remove_button'] } }; Except now I have another array of 6 "full_name" strings I need to be IN the

R Shiny selectize.js item creation

点点圈 提交于 2019-12-11 12:08:48
问题 selectize.js has an item creation option as mentioned on http://brianreavis.github.io/selectize.js/. I'm trying to add the same feature in an R Shiny implementation of selectize but unable to figure out how. Thanks for your help! PS: Some more details about what exactly I'm doing - I have some sort of free text vector that I let the user add to. However, I want Shiny to prompt the user with the existing free text values that have previously been added in case the user wants to repeat one of

How to hide a selectize option programmatically?

左心房为你撑大大i 提交于 2019-12-11 06:37:14
问题 I currently have a selectize drop-down that is suppose to have some options in it disabled and hidden depending on a list of strings that I have. Here is the non-selectize javascript function that I tried: <!DOCTYPE html> <html> <body> <select onchange="ToggleSelectizeOptions(this.value)"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="opel">Opel</option> <option value="audi">Audi</option> <option value="ford">Ford</option> <option value="hyundai"

How can I disable automatic filtering in selectize.js? Built-in / plugin / modilfy source?

烈酒焚心 提交于 2019-12-11 03:36:04
问题 I have a selectize.js drop-down, which feeds a list of items from the server using ajax. The server provides an autocomplete from the given string, so I don't need selectize's native filtering. Besides, I really need to turn it off: The server output may be totally different from the one, feeded by a standard string-search algorythm. The data is feeded finely into javascript objects, but selectize doesn't even show a popup, since those items doesn't match selectize's filter. How can I disable

Shiny: updateSelectizeInput is throwing the error “$ operator is invalid for atomic vectors”

ε祈祈猫儿з 提交于 2019-12-10 18:54:13
问题 I am new to shiny and having hard time to figure this out. I am trying to create a "Select ALL" button in my selectizeInput but I am getting an error while passing the input from selectizeInput to the updateSelectizeInput. Could someone please help me to resolve this. When I select "Select ALL" from the input box , the App closes and shows the error: "$ operator is invalid for atomic vectors" I added "Select All" in the input field (selectizeInput()). When an user clicks "Select All",

selectize.js : to clear selected value in onChange event

血红的双手。 提交于 2019-12-10 17:40:29
问题 I am trying to clear out the value selected in the onChange event depending on a condition. Whether or not its already present in a selected list. However i am not able to clear of the value using $select[name][0].selectize.clear(); from inside the onChange object. I tried various versions of it , like using the elements id. Please help me with this. $select[name].selectize({ valueField: 'lot_name', labelField: 'lot_name', create: true, options: res, render: { option: function (item, escape)

How can I get selectize to insert the text of the option, not just the value?

一个人想着一个人 提交于 2019-12-10 17:35:51
问题 I am trying to use Selectize.js to handle a multi-select field in my form. When you select an option from the dropdown, it adds a selection to the select field , but only adds the data value. Does anyone know if there is an easy way to get Selectize to add the text from the option as well? 回答1: Use the .getItem(value) method. https://github.com/brianreavis/selectize.js/blob/master/docs/api.md#methods_options Try here: http://jsfiddle.net/pzekurvp/5/ var selectizedElement, $selectizedElement;

Disable “remove on backspace” (or remove ibeam entirely)

老子叫甜甜 提交于 2019-12-10 04:46:29
问题 I'm trying to make a custom select box using selectize.js. So far it was easy to configure and the API supports about everything. The last thing I need to do is disable the option to remove items pressing backspace. For this I couldn't find any methods to call of properties to configure. Do you have any idea on how to achieve this? Also, another thing that would work for me will be to disable "ibeam". This is the feature that allows you to use the arrow keys to navigate between the selected

How to get selectize.js to work with meteor.js

爷,独闯天下 提交于 2019-12-08 13:20:31
I am trying to implement a tagging system UI like the one seen on meteor forums (with dropdown menu of tags, colored squares, and descriptions.) After some googling, I have come to the conclusion that selectize.js ( https://brianreavis.github.io/selectize.js/ ) is one of the richest and most actively managed libraries for accomplishing tagging. My current install of selectize.js: ( note: I already tried installing jeremy:selectize meteor package but didn't work either ) selectize.js is in client/lib all stylesheets and other helper js files are in client/ However I can't get the following

How to get selectize.js to work with meteor.js

醉酒当歌 提交于 2019-12-08 07:29:01
问题 I am trying to implement a tagging system UI like the one seen on meteor forums (with dropdown menu of tags, colored squares, and descriptions.) After some googling, I have come to the conclusion that selectize.js (https://brianreavis.github.io/selectize.js/) is one of the richest and most actively managed libraries for accomplishing tagging. My current install of selectize.js: ( note: I already tried installing jeremy:selectize meteor package but didn't work either ) selectize.js is in