Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We have added default configuration for login, register it will use for you to create a new configuration for the screen.

Usage:

  1. Go to dev-packages/egov-wms/src/ui-config/screens/specs/ in the root of the project.

  2. Create a folder for your set of screens. Eg: auth.

  3. Create a file for the screen. Eg:login.js

  4. Write your configuration.

...

example of using material UI components(https://material-ui.com/)

React way for rendering Material-UI component

Code Block
Import React from “react”;

Import {Button} from ‘@material-ui/core’;

<Button variant =“contained” color=“primary”>Primary</Button>

EGov way for rendering the same component in the configuration

Code Block
languagejs
……………
.
.
primaryButton:{
  componentPath  : “Button”,
  props:{
  Variant :“contained”,
  Color :“primary”
}
.
.
………………

Inbuilt Screens:

Login

...

Register

...