Grid Theme Colors
JavaScript Data Grid
The code snippet below is from the initialization code. buildInitUiDataTable
accepts 5 arguments, but you can get the default functionality by only passing the 1st argument, which is your data.
The 2nd and 3rd arguments are for a 1 or 2 colored theme you want to use for the grid. The args accept any css color or hex code.
Do a ctrl + F in the enterprise javascript file for handleTheme: to find the function that
applies the theme colors. The first color value you pass (2nd arg in buildInitUiDataTable) will mainly determine text colors.
The 2nd color value you pass (3rd arg in buildInitUiDataTable) will mainly determine some background colors and borders. There
are essentially an unlimited amount of theme combinations you can create with just 2 colors. Pass null for either arg to use only
1 theme color at a time. Or only pass a 2nd arg. Pass null for both or only pass your dataset to buildInitUiDataTable to use the
default theme.
deebo.methods.buildInitUiDataTable(data, "white", "darkred")//css or hex colors
The invocation of buildInitUiDataTable with the theme colors "white" and "darkred" results in the following grid appearance: