Skip to Content

how to add CSS to the table header in SAPUI5 app

Hi All,

I have a table in which i want the column heading to be bold ,i am having a css in which i have a class .withBold .When i add it to a text inside the Column tag it was not working same class if i use it out for a Text tag then its working as expected , am i missing something here ?

<columns>

<Column minScreenWidth="" demandPopin="false">

<Text text="Region ID" class = "withBold" /> </Column>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 13 at 05:54 AM

    hi Naga,

    Give a table id for eg <Table id="ApproverTab">.

    Inside html style

    tag

    <html:style>

    #idDetailPage1--DetailFrag--ApproverTab-listUl tr th span{

    font-weight: bold !important; }

    </html:style>

    idDetailPage1--DetailFrag--ApproverTab-listUl is the element id

    model1.png

    Add comment
    10|10000 characters needed characters exceeded