UNPKG

@quartic/bokehjs

Version:

Interactive, novel data visualization

34 lines (24 loc) 614 B
import * as p from "core/properties" import {Widget, WidgetView} from "./widget" import template from "./markup_template" export class MarkupView extends WidgetView template: template initialize: (options) -> super(options) @render() @listenTo(@model, 'change', @render) render: () -> super() @$el.empty() @$el.html(@template()) if @model.height @$el.height(@model.height) if @model.width @$el.width(@model.width) export class Markup extends Widget type: "Markup" initialize: (options) -> super(options) @define { text: [ p.String, '' ] }