Skip to Content

how to apply css in xml view in sapui5

May 16, 2017 at 09:39 AM


avatar image
Former Member


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}">


<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>


with regards


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member May 17, 2017 at 10:06 AM
  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.

10 |10000 characters needed characters left characters exceeded