OCA reporting engine fork for dev and update.
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.

20 lines
619 B

  1. odoo.define('kpi_dashboard.BokehWidget', function (require) {
  2. "use strict";
  3. var AbstractWidget = require('kpi_dashboard.AbstractWidget');
  4. var registry = require('kpi_dashboard.widget_registry');
  5. var BokehWidget = AbstractWidget.extend({
  6. template: 'kpi_dashboard.bokeh',
  7. fillWidget: function (values) {
  8. var val = values.value.bokeh;
  9. var widget = this.$el.find('[data-bind="value"]');
  10. widget.css('height', this.widget_size_y - 90);
  11. widget.html(val);
  12. },
  13. });
  14. registry.add('bokeh', BokehWidget);
  15. return BokehWidget;
  16. });