Custom CSS Class

0
Hi – I’ve added the following custom CSS class (bottom line .MyClass) – is this the correct way to add it in the .scss file? And then I would put it in the “Appearance” tab of my data grid colum  
asked
7 answers
0

Yes this should work. Don't forget you also need to compile the scss file to css. 

If you want to add a $ before text, I think it is better to do content: ‘$ ‘ ;  (so with a space), instead of moving it to the left 5px. If you have a very large (or very small font), the space between your text and the dollar-sign could look awkward. 

answered
0

It will work but have your editor fix the layout (Shift+Alt+F in Visual\studioCode)

answered
0

Does anyone know how to prevent the $ from appearing next to the data grid label? I saw some post mentioning using “tbody,” but that didn’t seem to work.

answered
0

Illustration of problem – the dollar signs are floating above the data grid and also next to the data grid headers. As far as which level I added the class, besides the original screenshot above, I applied the class on the data grid object. Does this help answer the question? Appreciate any tips!

 

answered
0

Is this correct? Now the $’s aren’t showing at all … Sorry again for the simple question, but I’m unfamiliar with HTML

answered
0

That is working for me now (all data grid columns show the $), and I’ve been reading up on CSS. What I'm still unsure about is how to override a column in the datagrid/table so that it doesn’t show the $. Any tips?

answered
0

Figured it out using the class below from a different post, and applied to data grid column instead of a class to the entire grid:

.dollarsign label:before, .dollarsign .mx-datagrid-data-wrapper:before {
  content: "$";
  padding-right: 3px;
}
 

answered