UNPKG

@discoveryjs/discovery

Version:

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

17 lines (14 loc) 375 B
import { numDelim } from '../../core/utils/html.js'; import usage from './text-numeric.usage.js'; const props = `{ text: #.props has no 'text'? } | overrideProps()`; export default function(host) { host.view.define('text-numeric', function (el, { text }) { el.innerHTML = numDelim(text); }, { tag: 'span', props, usage }); }