This function provides the basic formatting. We do not need to provide a getter or formatter for basic fields
If the editable flag is set to true then we will set the editable property to true and provide a valueSetter
This takes a mui column and adds formatting to it to handle single select fields.
It extracts the possible values from the layout column and adds them to the column config as choices
The filter uses these choices to filter the data
This is the base config for a column that is used by the MUIGrid component
It takes a column from the layout and converts it into a config that can be used by the MUIGrid component
This function provides a date value or a default value if the date is null or undefined
It is used to render the cell as 'N/A' if the date is null or undefined
This function provides a date value or a default value if the date is null or undefined.
The returned date is formatted as a string according to the common dateFormatter for the entire app.
This provides a name value or a default value if the name is null or undefined
It is used to render the cell as 'N/A' if the object or name is null or undefined
Parameters:
Name
Type
Description
value
Object
The object that contains the name
defaultValue
String
The default value to return if the name is null or undefined