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
20 lines
619 B
odoo.define('kpi_dashboard.BokehWidget', function (require) {
|
|
"use strict";
|
|
|
|
var AbstractWidget = require('kpi_dashboard.AbstractWidget');
|
|
var registry = require('kpi_dashboard.widget_registry');
|
|
|
|
|
|
var BokehWidget = AbstractWidget.extend({
|
|
template: 'kpi_dashboard.bokeh',
|
|
fillWidget: function (values) {
|
|
var val = values.value.bokeh;
|
|
var widget = this.$el.find('[data-bind="value"]');
|
|
widget.css('height', this.widget_size_y - 90);
|
|
widget.html(val);
|
|
},
|
|
});
|
|
|
|
registry.add('bokeh', BokehWidget);
|
|
return BokehWidget;
|
|
});
|