on 04-21-2016 10:49 AM
Hi,
I tried changing the font size and color of the font of the contents in tree structure after adding hierarchy to it.
I tried using the below code for it. I was unsuccessful.
I have used the below code.
background-color: rgb(81,81,81);
line-height: 20px;
font-family:"HelveticaNeue-Regular", sans-serif;
font-weight: bold;
font-size: 25px;
text-align: Center;
color: white;
What wrong I'm doing here ?
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To modfiy css of DS components, we need to affect its native CSS class (defined on DS theme level).
Likewise, to modify css of Tree component, you need to edit in the native class instead of creating a new one. One of the native class of tree component is, .sapUiTableCell > .sapUiTv
Please share screenshot in case you feel difficulty in achieving this.
Thanks,
Ganesh
.hierarchy.sapUiTableCell>.sapUiTv
{
line-height: 20px !important;
font-family: Arial, Helvetica, sans-serif!important;
font-weight: bold !important;
font-size: 26px !important;
color: rgb(81,81,81) !important;
}
this is the css I'm using, with the changes as you explained.
Nothing is changing in the component
Hi Rajath,
Did you try '!important' thing in your css-options?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First- are you using the tree component as part of the Info Chart?
Where are you placing the CSS? Please share screen shots - use the camera icon to upload
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.