cancel
Showing results for 
Search instead for 
Did you mean: 

Add style class to -inner elements dynamically

former_member198357
Participant
0 Kudos

Dear All,

I am using sap.m.input elements in my form and I am adding the same dynamically in onBeforeRendering method. I am able to add my CSS style class to input base but I am not able to do the same on input base inner.

I can use .sapMInputBaseInner but then this will be appicable to all my elements and hence I want to add my own style class.

Could anyone please help on this.

Regards,

Bhavin

Accepted Solutions (1)

Accepted Solutions (1)

former_member198357
Participant
0 Kudos

Solved problem by myself.

My issue was to set different font size for my input element in different views.

So I did following:  so simple

.sapMInputBase{

     font-size: 4rem;

}

.sapMInputBaseInner{

     font-size: inherit;

}

Regards,

Bhavin

Answers (0)