Hi, I want to change css of a label. I have the follow code.
In a view
new sap.m.Label("lblTotalItems",{text:""}).addStyleClass("labelcart")
In my index.html
<style>
.labelcart{
font-weight: bold;
font-color:#EC1919;
}
</style>
And the vode generate is
<label id="lblTotalItems" data-sap-ui="lblTotalItems" style="direction:inherit;text-align:left" class="labelcart sapMLabel sapMLabelMaxWidth">1</label>
I tried to remove sapMLabel and sapMLabelMaxWidth but it doesn't work
What Can I do? Thanks!!!