JSFiddle - React, Tailwind, and code Playground

by ksgsharma

JavaScript

const find = (item, input) => objectScan(['**'], {
  abort: true,
  rtn: 'value',
  filterFn: ({
    value
  }) => value.item === item
})(input);

const data = [{
    "label": "Columns",
    "columns": [{
        "components": [{
            "label": "Escalation ID",
            "labelPosition": "top",
            "placeholder": "",
            "description": "",
            "tooltip": "",
            "prefix": "",
            "suffix": "",
            "widget": {
              "type": "input"
            },
            "inputMask": "",
            "allowMultipleMasks": false,
            "customClass": "",
            "tabindex": "",
            "autocomplete": "",
            "hidden": false,
            "hideLabel": false,
            "showWordCount": false,
            "showCharCount": false,
            "mask": false,
            "autofocus": false,
            "spellcheck": true,
            "disabled": true,
            "tableView": true,
            "modalEdit": false,
            "multiple": false,
            "persistent": true,
            "inputFormat": "plain",
            "protected": false,
            "dbIndex": false,
            "case": "",
            "encrypted": false,
            "redrawOn": "",
            "clearOnHide": true,
            "customDefaultValue": "",
            "calculateValue": "",
            "calculateServer": false,
            "allowCalculateOverride": false,
            "validateOn": "change",
            "validate": {
              "required": false,
              "pattern": "",
              "customMessage": "",
              "custom": "",
              "customPrivate": false,
              "json": "",
              "minLength": "",
              "maxLength": "",
              "strictDateValidation": false,
              "multiple": false,
              "unique": false
            },
            "unique": false,
            "errorLabel": "",
            "key": "escalationId",
            "tags": [],
           ...