Skip to Content
avatar image
Former Member

how to apply css in xml view in sapui5

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

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.

    Add comment
    10|10000 characters needed characters exceeded