You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
432B

  1. HTMLWidgets.widget({
  2. name: 'frappeChart',
  3. type: 'output',
  4. factory: function(el, width, height) {
  5. // TODO: define shared variables for this instance
  6. return {
  7. renderValue: function(x) {
  8. // TODO: code to render the widget, e.g.
  9. el.innerText = x.message;
  10. },
  11. resize: function(width, height) {
  12. // TODO: code to re-render the widget with a new size
  13. }
  14. };
  15. }
  16. });