cancel
Showing results for 
Search instead for 
Did you mean: 

SAPui5 : change design of a label in a formelement

Former Member
0 Kudos

hello,

I am unable to change the design to for example to Bold for the labels of my formelements in my form, the 3rd line in the code below

<f:FormContainer binding="{GETPLANT>/S_T001WSet('03')}">
  <f:formElements>
    <f:FormElement label="Warehouse Number">
      <f:fields>
	<Text text="{GETPLANT>DC}"/>
      </f:fields>
    </f:FormElement>
  </f:formElements>
</f:FormContainer>

but with ui5 inspector, it is possible to change the design of the label :

So there must be a way to do it, any idea?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

I already use some custom CSS in my projects, the problem here is, the label is an attribute of the formelement, it is not a label on it's own,

so this:

<f:FormElement label="Warehouse Number" class="myclass">

will apply a css to the formelement, not the label, i need something like

<f:FormElement label="{text:'Warehouse Number',design:'Bold'}">

but this is not working

Joseph_BERTHE
Active Contributor
0 Kudos

Hello,
Did you follow this blog, it should answer your question.

Regards,

Joseph