UNPKG

@discoveryjs/discovery

Version:

Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards

22 lines (16 loc) 488 B
/* eslint-env browser */ import usage from './blockquote.usage.js'; export default function(host) { function render(el, config, data, context) { const { content = 'text', kind } = config; if (typeof kind === 'string' && /\S/.test(kind)) { el.dataset.kind = kind.trim(); } return host.view.render(el, content, data, context); } host.view.define('blockquote', { tag: 'blockquote', render, usage }); }