685 questions
2
votes
1
answer
92
views
How to programmatically disable an individual entry in a selectizeInput?
I'm aware of almost identical questions that were already raised here:
Disable an item in selectInput/selectizeInput
Disable an item in selectinput dropdown
However I want to use only plain shiny ...
1
vote
1
answer
81
views
How to add a custom javascript call to a plotly highlight/selectize menu?
I'm building an interactive Rmarkdown html document with plotly in R. It is composed by 3 elements: a main scatterplot (interactive), a secondary scatterplot, and a table.
The design looks like this:
...
0
votes
0
answers
160
views
Bootstrap 5 Form Floating with Selectize.js
I'm looking to apply form floating to a select field that I have modified with selectize.js.
The trouble is selectize.js turns the original <select> element to hidden and appends its own ...
1
vote
0
answers
193
views
jQuery Selectize.js with ajax data loading
I am trying to load data for jQuery plugin Selectize.js via ajax, but I am not able to delete options loaded with previous calls from dropdown element.
I am stuck with this code where I am able to ...
0
votes
1
answer
52
views
Use keyboard shortcut to loop through options of a selectize dropdown
I have an RShiny a dropdow (a selectInput object) and I would like to be able to switch between options using a keyboard shortcut.
For my purposes the best option would be to have the key combination ...
1
vote
1
answer
70
views
SelectInput with conditional dataframe
I want to make a shiny app in which I select different dataframes to visualize. Then I want to select a filter on this same dataframe. The point is that I want the selectInput to show the filter ...
0
votes
2
answers
116
views
How can i use selectize in wordpress
I need to use Selectize in wordpress ajax.
I have a selecto tag, I want to search by entering words and display the results in a dropdown. It is also possible to select several items and delete them.
...
-1
votes
1
answer
69
views
Selectize.js only finds options with words that start with the given string
I am experiencing an annoying issue with the latest Selectize (currently 0.15.2).
Whenever I type in the dropdown to search for entries, I only ever get entries that match according to the start of a ...
1
vote
1
answer
52
views
How can I adapt the behaviour of selectizeInput to be more similar to selectInput?
I want for my shiny-app, that when the user deletes the entry in a selectizeInput, that the app does not react at all, just like it happens with selectInput. Also when the empty selectizeInput looses ...
0
votes
0
answers
41
views
Show all selectizegroupUI options but grey out?
Is it possible to show all selectizegroupUI options but grey out the unavailable selections based off of what it already selected?
For example, when selecting a Manufacturer, show all other options ...
0
votes
1
answer
275
views
Empty Option for selectizeInput
My dropdown box is an optional filter. If one or more items are selected, then a filtering is performed. If nothing is selected -- no filtering.
I would like to communicate that behaviour. By default, ...
1
vote
1
answer
64
views
Pass html into selectize option
I used selectize html plugin for custom select tag.
I make html:
<select name="personAndType" class="form-control" multiple="multiple">
<option value=&...
0
votes
1
answer
27
views
Apply Selectize to all select in my component
I wanted to apply Selectize to every select tag in my component .
The reason I need this to be a function is because I have select that can be added by button.
export default {
data() {},
...
0
votes
2
answers
100
views
How do I interpret space characters in a text input as underscores when filtering options in a datalist?
I have an input element where the user is meant to type their time zone or select it from a dropdown menu. The time zone list consists of official TZ identifiers. These identifiers follow a specific ...
0
votes
1
answer
122
views
Dependent question with a lot of values in shinysurveys
I am making a Shinysurvey for some government agency. I have a dummy questionary.
This are the questions dataframe head
question
option
input_type
input_id
dependence
dependence_value
required
Nombre ...
1
vote
2
answers
123
views
SelectizeInput in Shiny - making part of a choice bold
I'd like to alter a part of a SelectizeInput dropdown option. For example, if any choice ends with a "*", the "*" should be bold (or in a bigger font).
I'm not sure that the ...
1
vote
1
answer
412
views
Can I override the onChange trigger of a selectize input?
I have a selectize input and want to change its behaviour. I normally use selectize inputs from within some framework (shiny), so I hope the example that I give here is understandable and precise.
I ...
0
votes
1
answer
112
views
How do I prevent selectizeInput from sending an empty state to shiny? [duplicate]
I have a shiny app in which I have a selectizeInput. Only having exactly one choice is valid, but it should be possible to delete the input, so one can start typing in order to search through all ...
0
votes
1
answer
77
views
How can I add an onBlur event to a selectizeInput
I would like to trigger an event when the user leaves a selectize-Input. However for selectizeInput it does not work and for textInput it only fires once:
library(shiny)
ui <- fluidPage(
...
0
votes
0
answers
22
views
changing the value of selectize without deleting it
I have an input with selectize and I want when displaying the selected value, to be able to modify part of the displayed value without completely deleting the option. In fact currently I have to ...
1
vote
1
answer
57
views
Change Selectize load url parameters
selectize({
valueField: 'Id',
labelField: 'Name',
searchField: 'Name',
load: function (query, callback) {
$.ajax({
url: '/some_url/params?...
0
votes
1
answer
62
views
Getting a syntax error when attempting to remove an item from Selectize input
Whenever i try to remove an item from Selectize input, i get the following error in the console:
index.js:12 Uncaught Error: Syntax error, unrecognized expression: option[value="{"id":&...
1
vote
1
answer
232
views
Default values for R Shiny selectizeInput
Here's a small example to illustrate my issue. My real situation involves a dataframe with 14 columns and over 22 million rows...
library(shiny)
library(DT)
library(magrittr)
model <- c("...
1
vote
0
answers
76
views
Adding an arrow and a reset icon to reset a dropdown using Selectize.js
<select class='select-option hid-model search ' id="modelsmain" onchange="filteronchange('indexmain')" name="models">
<option value=''><?php echo lang('...
1
vote
1
answer
102
views
How to avoid DT column filters breaking selectizeInputs?
I have a shiny app in which a new tab panel with input elements gets created by a click of a button. There is also a DT object which shows global information and with which elements can be selected ...
1
vote
1
answer
208
views
More than two dependent selectizeInputs cause an infinite loop in R Shiny
In the simple example below, I cannot select state 3 after selecting states 1 and 2. It works okay with 2 states, but as soon as I go to three states it infinite loops through the ObserveEvents. If it ...
0
votes
1
answer
123
views
R shiny selectInput - preselect list begins only with the letters written in inputfield
Hei,
I have a very long list of headers (>1000 items). I want to chose one of them with a selectInput in a R shiny app. Before chosing one Item, I want to type letters in the selectInput to shorten ...
1
vote
1
answer
495
views
Shiny: selectizeInput tooltip hover for each choice
I want the user to see a different tooltip when hovering over grouped choices in selectizeInput. This was solved here for a flat vector of choices. i.e. choices = c("a", "b", "...
1
vote
1
answer
263
views
Latex AND (LONG) Text in R Shiny selectInput/selectizeInput
Before you go after me regarding duplicate posts, hear me out: I already stumbled across posts like these: latex in shiny selectInput
Which are super useful! However, the main issue is that I just don'...
1
vote
1
answer
162
views
SelectizeJs: duplicate select menus are being creacted when generating select menus dynamically
I'm trying to create multiple selectize select menu's dynamically, by pressing the plus icon.
Please test the code below, the problem is that if I comment out this line
selectize_init(select_class, ...
1
vote
1
answer
259
views
How to make same order of choices in selectizeInput while clicking or typing?
I made a vector of choices. When I click on selectizeInput, I get choices in the same order as in my vector, but when I start typing in selectizeInput, the order of my choices is not the same as in my ...
1
vote
1
answer
111
views
SelectizeInput options show as active after removing and re-adding them
When you remove a choice with the remove_button plugin and then add it again, it shows up in blue, as if it were selected, while the rest stay grey. I'd like to force them all to be grey.
Example:
...
2
votes
1
answer
271
views
Use onchange callback option for selectizeInput
I am trying to use the onChange callback for selectizeInput within Shiny.
The following code works - when the option on the drown-down menu is changed, the text output appears. However, it is not ...
0
votes
1
answer
193
views
How can I clear all options in selectize.js on the click of a radio button?
I have a selectize.js function that allows a search ability through options. When a radio button is clicked, I want all the options in the selectize.js function to be removed so new options can be ...
0
votes
1
answer
361
views
Why is svelecte creating [object Object] when I create a new item?
In my SvelteKit project I am using the svelecte package to add selectize-style select inputs. The initial values are passed in via the the data variable created by svelte's load function when the page ...
0
votes
2
answers
319
views
Selectize finds only the words that start with the given string
Why does Selectize show only the words that start with the given string and not the ones that contain it?
I want to show the matches that contain the specified string, not only those that start with ...
0
votes
0
answers
161
views
Selectize required tag breaks placeholder
I'm building a laravel project (version 9) and I need to use selectize.js for my select inputs.
I need to show a placeholder like "Select product" so users can click on it, search for items ...
1
vote
1
answer
301
views
Selectize in DataTables gives empty values when clicked on Edit
I am trying to integrate selectize in Datatable Editor, but get an empty value (for the field 'country'), if I click on edit.
I have a datatable defined as follows :
var table = $('#example')....
0
votes
2
answers
187
views
On focus edit input
I have a select in my section using selectize js , now I want when input is focused to be able to edit the input after selection of any option.
Live demo: live demo
HTML
<label>Single ...
0
votes
2
answers
135
views
get the values of two dropdowns into a url
I have two dropdowns that I need their values inside a URL. I am using selectize for the two dropdowns. But I mostly used jquery for the functions.
Expected output is a URL that changes with value of ...
0
votes
1
answer
266
views
Storing the values of two dropdown values in a variable
I have two dropdown menus and I would like to store the values of the user selected value. I am making use of selectize library for the dropdowns. Html:
<div style="max-width: 200px">
...
0
votes
1
answer
611
views
Plugins Select option with search not working on appended option
Does anyone know how to use select option with search but the option is appended. the plugins that I've tried cant read the appended option. Does anyone know how? Please help. thanks.
Plugins i've ...
0
votes
1
answer
284
views
Selectize js push chosen option to the top of the list
I've chosen selectize.js as it fits my needs.
One thing I can't force it to do is to move the chosen option to the top of the list.
Here is jsfiddle version
const selectizeInit = (() => {
...
1
vote
2
answers
704
views
How do I use input from `selectizeInput` to filter a list of options and then `updateSelectizeInput`?
BACKGROUND:
I have a large list of stock symbols, 27,000 rows, that I would like to be choices in a selectizeInput() on a shinyApp. Since the list is large I am using server = T in ...
0
votes
1
answer
112
views
Selectize is removing optgroup options
I am using selectize (a select2.js alternative). When I am running selectize on my field with 2 optgroups, one of the optgroups disappears \(〇_o)/
This is the HTML of the select field:
This is how it ...
0
votes
1
answer
231
views
Dynamically reorder options in selectizeInput so that most recently choise is at the top
I have an Rshiny app where users can select from a list of items to view. The list is usually very long (>10,000). Most users would want to look back and forth between a select sample of these ...
0
votes
0
answers
54
views
concantenating the value of select option in selectize.onchange method to be used in a URL
I am working on a project where I created an API in Flask Python and part of the URL has its value gotten from a select option in a Jinja template:
Jinja2 template HTML: values from the backend
<...
-1
votes
1
answer
298
views
Gettin the value from a selected option in Selectize.js
I am using multiselect in selectize.js, how do i get the vales from the select options:
html:
<div class="selectBox1" multiple="multiple">
<select id="period&...
0
votes
1
answer
505
views
Error while using selectize.js: Uncaught TypeError: $(...).selectize is not a function
I keep getting this error over again while using select.js for some reason I have checked other similar error it is still the same although I am doing this in flask jinja template and also have ...
1
vote
1
answer
951
views
selectize.js typescript: Cannot read properties of undefined (reading '0')
I am trying to implement selectize.js inside my project with webpack and typescript.
First I installed selectize.js and related types:
yarn add @selectize/selectize
yarn add @types/select2
In my ...