diff --git a/frontend/src/AppBuilder/RightSideBar/Inspector/Components/Table/ColumnManager/PropertiesTabElements.jsx b/frontend/src/AppBuilder/RightSideBar/Inspector/Components/Table/ColumnManager/PropertiesTabElements.jsx index c161156e8b..2e975109d2 100644 --- a/frontend/src/AppBuilder/RightSideBar/Inspector/Components/Table/ColumnManager/PropertiesTabElements.jsx +++ b/frontend/src/AppBuilder/RightSideBar/Inspector/Components/Table/ColumnManager/PropertiesTabElements.jsx @@ -267,6 +267,24 @@ export const PropertiesTabElements = ({ )} )} + {column.columnType === 'json' && ( +
+
+ +
+
+ )}
{ // adding error handling mechanism for fxActiveFieldsProperty , if props.fxActiveFields is array , then return props.fxActiveFields or else return [], this will make sure, fxActiveFields wil always be array diff --git a/frontend/src/AppBuilder/Widgets/Table/Json.jsx b/frontend/src/AppBuilder/Widgets/Table/Json.jsx index 9eda847d3f..fcae72459e 100644 --- a/frontend/src/AppBuilder/Widgets/Table/Json.jsx +++ b/frontend/src/AppBuilder/Widgets/Table/Json.jsx @@ -5,6 +5,7 @@ import OverlayTrigger from 'react-bootstrap/OverlayTrigger'; const Json = ({ isEditable, + jsonIndentation, darkMode, handleCellValueChange, cellTextColor, @@ -17,7 +18,6 @@ const Json = ({ cellSize, maxRowHeightValue, }) => { - const jsonIndentation = false; const ref = React.useRef(null); const [hovered, setHovered] = useState(false); diff --git a/frontend/src/AppBuilder/Widgets/Table/columns/index.jsx b/frontend/src/AppBuilder/Widgets/Table/columns/index.jsx index e7013d0b1e..257de7c4ae 100644 --- a/frontend/src/AppBuilder/Widgets/Table/columns/index.jsx +++ b/frontend/src/AppBuilder/Widgets/Table/columns/index.jsx @@ -716,9 +716,11 @@ export default function generateColumnsData({ ); } case 'json': { + const jsonIndentation = getResolvedValue(column?.jsonIndentation) ?? true; return (