2025-06-10 - Frontend Variable Object Standard

From Izara Wiki
Revision as of 10:33, 10 June 2025 by Rut (talk | contribs) (Created page with "==initTableConfig== export const NAME = { USER_NAME: "tableIdB", SLICE_NAME: "configReducer", }; ==tableConfig== <syntaxhighlight lang="JavaScript"> let objConfig = useSelector((state) => state[NAME.SLICE_NAME][USER_NAME]); //config edit let objOutputTableConfig = useSelector((state) => state[NAME.SLICE_NAME][USER_NAME]); //output action ui visible edit let keySection </syntaxhighlight> if position in Element = objConfigElement ==ElementComponent== <synt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

initTableConfig

export const NAME = {

 USER_NAME: "tableIdB",
 SLICE_NAME: "configReducer",

};

tableConfig

 let objConfig = useSelector((state) => state[NAME.SLICE_NAME][USER_NAME]); //config edit

 let objOutputTableConfig = useSelector((state) => state[NAME.SLICE_NAME][USER_NAME]); //output action ui visible edit

 let keySection

if position in Element = objConfigElement

ElementComponent

const getObjectSchema = sharedSchema.getObjectSchema;

    const elementTypeHeaderFooter = [
      "sort",
      "freetext",
      "numberOfRows",
      "filterDatafield",
      "select",
      "redio",
      "checkbox",
      "datafield",
      "totalDatafield",
      "pageNumbers",
      "submit",
      "reset",
      "bulkaction",
    ];
    const elementTypeRecords = ["datafield", "freetext", "bulkaction"];