versacall-variables-library-react

2.0.12 • Public • Published

Versacall Variables Library React

Quick Install

You can use Variable Properties as the "main" component and not need anythign else. It takes three props:

Variable: The variable object
updateVariable: call back function for updating, sends back an object with the just the changed property and new value
errorType: string, hightlights the specified field as an error

errorType Options:

  • variableName
  • constantValue
  • formulaValue
  • shift
  • schedule
  • timeOffsetValue
  • dateOffsetValue

functions and constants

Constants includes propTypes and intial versions of each variable.

The function "setVariableDefaults" uses those intial values to return the appropiate variable if you feed it the varType as a string.

Readme

Keywords

none

Package Sidebar

Install

npm i versacall-variables-library-react

Weekly Downloads

85

Version

2.0.12

License

none

Unpacked Size

224 kB

Total Files

58

Last publish

Collaborators

  • versacall