How to use the metal-jsx.Config.object function in metal-jsx

To help you get started, we’ve selected a few metal-jsx 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 metal / metal-devtools / frontend / components / StatePane.js View on Github external
})}

        {!dataExists &&
          <div>
            <i>{'No Component Data'}</i>
          </div>}
      
    );
  }
}

StatePane.PROPS = {
  component: Config.any(),
  onInspectDOM: Config.func(),
  setStateFn: Config.func(),
  typeColors: Config.object()
};

export default StatePane;
github metal / metal-devtools / frontend / components / JSONEditor.js View on Github external
render() {
    const {typeColors, value} = this.props;

    return (
      
    );
  }
}

MetalJSONEditor.PROPS = {
  config: Config.object(),
  onChange: Config.func(),
  type: Config.string(),
  typeColors: Config.object(),
  value: Config.object()
};

export default MetalJSONEditor;
github metal / metal-devtools / frontend / components / JSONEditor.js View on Github external
return (
      
    );
  }
}

MetalJSONEditor.PROPS = {
  config: Config.object(),
  onChange: Config.func(),
  type: Config.string(),
  typeColors: Config.object(),
  value: Config.object()
};

export default MetalJSONEditor;
github metal / metal-devtools / frontend / components / JSONEditor.js View on Github external
);
  }
}

MetalJSONEditor.PROPS = {
  config: Config.object(),
  onChange: Config.func(),
  type: Config.string(),
  typeColors: Config.object(),
  value: Config.object()
};

export default MetalJSONEditor;

metal-jsx

A JSX templates renderer to be used with Metal.js's Component class

BSD
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis