mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-10 07:28:01 -05:00
12 lines
285 B
JavaScript
12 lines
285 B
JavaScript
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');
|
|
|