Kitty
Kitty

Reputation: 187

sapui5 form label alignment

how can I set form label property to left currently by default it align to Right I check in console i.e. default css working

.sapMLabel {
    text-align: end !important;
}

I want it to align to Left how to achieve same.

Upvotes: 1

Views: 13742

Answers (2)

Haojie
Haojie

Reputation: 5713

there is a textAlign property of sap.m.Label.

<Label text="Sales order" textAlign="Right"/>

Upvotes: 4

Jerodev
Jerodev

Reputation: 33186

It depends on the html and the css for the surrounding tags.
But in most cases, this should do the trick:

.sapMLabel {
    float: left;
}

Upvotes: 0

Related Questions