mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Split up shiny.js
This commit is contained in:
11
srcjs/output_binding_text.js
Normal file
11
srcjs/output_binding_text.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var textOutputBinding = new OutputBinding();
|
||||
$.extend(textOutputBinding, {
|
||||
find: function(scope) {
|
||||
return $(scope).find('.shiny-text-output');
|
||||
},
|
||||
renderValue: function(el, data) {
|
||||
$(el).text(data);
|
||||
}
|
||||
});
|
||||
outputBindings.register(textOutputBinding, 'shiny.textOutput');
|
||||
|
||||
Reference in New Issue
Block a user