How to use the metal-state.Config.number function in metal-state

To help you get started, we’ve selected a few metal-state examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiferayCloud / marble / packages / marble-timestamp / src / Timestamp.js View on Github external

 * State definition.
 * @static
 * @type {!Object}
Timestamp.STATE = {
  childElementClasses: Config.string().value(''),
  elementClasses: Config.string().value(''),
  hasTitle: Config.bool().value(false),
  label: Config.string()
  time: Config.number().value(0),
  title: Config.string()
  type: Config.oneOf(['timestamp', 'duration'])

Soy.register(Timestamp, templates);

export {Timestamp};
export default Timestamp;