As shown in the picture, I need to represent the data in the same grid in different colors. The data is obtained from rest API in the form of list, namely [19,17,15].
Mainly to express changes, for example, added markings are marked in blue, and deleted ones are marked in red. I didn't find this function in the UI grid. I would like to ask if you have any good suggestions to implement it.
You can also use other libraries or other methods, you don’t have to use UI grid.
Thank you very much!
%>_<%, the most lonely moment is when you ask and answer your own questions.
In the end, I used cellTemplate, nested several p's in each td, and then used repeat to generate p. The size of p was set to the same, and the height of the grid cell was the same, and then each p was arranged side by side, with the color of the words Determined by p's css. By the way, we must first turn the string object into a slice into an array.
This is the general idea. Who can give me some better suggestions? ! !