Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

🔹 Description

It is a component usually used for adding the enter value from the input text field.

🔹System Dependencies

🔹 Installation

The package can be installed via npm:

npm install empower-display --save

🔹 Info Single

Configuration

import { Info } from 'empower-display';

..............
const configInfoSingle = {
  title: 'Info Title',
  info: "<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>"
} 

    /**
     * 
     * getActions - method that gets the value and data of the component
     */

    const getActions = (value, data) => {
        console.log('VALUE', value, data)
    }
    
..............

  return (
    <>
      <Info config={configInfoSingle} onChange={e => getActions(e, 'info')} />
    </>
  )

Info Multiple

Configuration

import { Chip } from 'empower-display';

..............
const configChip = {
  removeIcon: false,
  label: 'Chip Label',
  id: 'chipID',
  disabled: false,
} 

    /**
     * 
     * getActions - method that gets the value and data of the component
     */

    const getActions = (value, data) => {
        console.log('VALUE', value, data)
    }
    
..............

  return (
    <>
      <Chip config={configChip} onChange={e => getActions(e, 'chip')} />
    </>
  )

🔹  Properties

Parent Parameter

Sub Parameter

Data Type

Constraint

config

JSON Object

Required

id

String

Required

type

String

Required

label

String

Optional

value

String

Required

placeholder

String

Optional

maxLength

Integer

Optional

readOnly

Boolean

Optional

required

Boolean

Optional

disabled

Boolean

Optional

rows

Boolean

Required

cols

Boolean

Required

allowedChar

JSON Object

Optional

alphabet

Boolean

Optional

numeric

Boolean

Optional

space

Boolean

Optional

allowedSymbols

Array (String)

Optional

customClass

String

Optional

onChanged

Event Method

Required

🔹 References

Repository Link: https://gitlab.com/empowerteams/empower-display.git

NPM Package: https://www.npmjs.com/package/empower-display

Demo Repo: git@bitbucket.org:empowerteams/mfe-sub-application-template.git

  • No labels