mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-11 07:05:18 -05:00
add new input 'varSelectInput()' and input binding 'shiny.symbol' and 'shiny.symbolList'
This commit is contained in:
@@ -3,6 +3,18 @@ $.extend(selectInputBinding, {
|
||||
find: function(scope) {
|
||||
return $(scope).find('select');
|
||||
},
|
||||
getType: function(el) {
|
||||
var $el = $(el);
|
||||
if (!$el.hasClass("symbol")) {
|
||||
// default character type
|
||||
return null;
|
||||
}
|
||||
if ($el.attr("multiple") === "multiple") {
|
||||
return 'shiny.symbolList';
|
||||
} else {
|
||||
return 'shiny.symbol';
|
||||
}
|
||||
},
|
||||
getId: function(el) {
|
||||
return InputBinding.prototype.getId.call(this, el) || el.name;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user