How to use metadata-abstract-ui - 4 common examples

To help you get started, we’ve selected a few metadata-abstract-ui 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 oknosoft / metadata.js / packages / metadata-react / src / DataList / DataList.js View on Github external
_formatter(rowData, columnIndex) {
    const {columns} = this.state;
    const {id, type} = columns[columnIndex];
    const v = rowData[id];

    switch (control_by_type(type, v)) {
    case 'ocombo':
      return this.props._mgr.value_mgr(rowData, id, type, false, v).get(v).presentation;

    case 'dhxCalendar':
      return $p.utils.moment(v).format($p.utils.moment._masks.date);

    case 'calck':
      return v;

    default:
      return v ? v.toString() : '';
    }
  }
github oknosoft / metadata.js / packages / metadata-react / src / DataTree / DataTree.js View on Github external
_formatter(rowData, columnIndex) {
    const {columns} = this.state;
    const {id, type} = columns[columnIndex];
    const v = rowData[id];

    switch (control_by_type(type, v)) {
    case 'ocombo':
      return this.props._mgr.value_mgr(rowData, id, type, false, v).get(v).presentation;

    case 'dhxCalendar':
      return $p.utils.moment(v).format($p.utils.moment._masks.date);

    case 'calck':
      return v;

    default:
      return v ? v.toString() : '';
    }
  }
github oknosoft / metadata.js / packages / metadata-react / src / DataField / DataField.js View on Github external
render() {

    const {_meta, props} = this;
    const {_obj, _fld, ctrl_type} = props;
    const type = ctrl_type || control_by_type(_meta.type, _obj[_fld]);

    switch (type) {

    case 'ocombo':
      return ;

    case 'oselect':
      return ;

    case 'calck':
      return ;

    case 'dhxCalendar':
      return ;

    case 'ch':
github oknosoft / metadata.js / packages / metadata-react / DataField / DataField.js View on Github external
render() {

    const {_meta, props} = this;
    const {_obj, _fld, ctrl_type} = props;
    const type = ctrl_type || control_by_type(_meta.type, _obj[_fld]);

    switch (type) {

    case 'ocombo':
      return ;

    case 'oselect':
      return ;

    case 'calck':
      return ;

    case 'dhxCalendar':
      return ;

    case 'ch':

metadata-abstract-ui

Abstract enums and methods for metadata.js

MIT
Latest version published 5 days ago

Package Health Score

60 / 100
Full package analysis

Popular metadata-abstract-ui functions