npm.io
2.3.0 • Published 6 years ago

oe-info

Licence
MIT
Version
2.3.0
Deps
6
Size
83 kB
Vulns
2
Weekly
0

<oe-info>

<oe-info> is used to display formatted values of numeric, string and date type.

Date

Import moment.js in document level to support 'format' options for date and timestamp type.

Styling

<oe-info> provides the following custom properties and mixins for styling:

Custom property Description Default
--oe-info-label Mixin applied to label section {}
--oe-info-value Mixin applied to value section {}
  <oe-info label="Balance" type="number" precision=2 value="3423434.34324"></oe-info>

  <oe-info label="Balance" format="Account Balance is @v" value="3423434.34324"></oe-info>

  <oe-info format="The name is $[name]" value='{"name":"Bond"}'></oe-info>