cancel
Showing results for 
Search instead for 
Did you mean: 

how to apply css in xml view in sapui5

Former Member
0 Kudos

hi

i want to apply css in xmlview.i tried this but its not working. plz give any suggestions.

<semantic:FullscreenPage id="page" semanticRuleSet="Optimized" title="{i18n>worklistViewTitle}">

<semantic:content>

<html:style> .myButton { color: red; } </html:style>

<Panel expandable="true" expanded="true" width="auto" class="myButton"> <headerToolbar> <Toolbar height="3rem"> <Title text="Challan Entry Form"/> </Toolbar> </headerToolbar>

</Panel>

with regards

nandini

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
  1. apply the CSS-File via index.html
  2. add a class to your control
    <Element class="myClass" />
  3. style this class within your CSS-File
    .myClass { color: #ff0000; }

be aware: not every control / element is able to use a class. you may find out by urself what will work and which approaches wont.