shinyBarcode.js 344 B

12345678910
  1. var barcodeOutputBinding = new Shiny.OutputBinding();
  2. $.extend(barcodeOutputBinding, {
  3. find: function(scope) {
  4. return $(scope).find('.shiny-barcode-output');
  5. },
  6. renderValue: function(el, data) {
  7. $(el).JsBarcode(data.barcode, data.options);
  8. }
  9. });
  10. Shiny.outputBindings.register(barcodeOutputBinding, "Shiny.barcodeOutputBinding");