@discoveryjs/discovery
Version:
Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards
17 lines (14 loc) • 353 B
JavaScript
/* eslint-env browser */
import usage from './text.usage.js';
const props = `{
text: #.props has no 'text'?
} | overrideProps()`;
export default function(host) {
host.view.define('text', function(el, { text }) {
el.appendChild(document.createTextNode(String(text)));
}, {
tag: false,
props,
usage
});
}