cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK Font-Style for iOS - change Font size?

age0110_
Explorer
0 Kudos
113

Hi Community,

I am trying to change the Font size on different MDK controls however nothing seems to work.

Based on the documentation we should be able to use CSS attribute font-style: UIFont.textstyle however I am not able to find any place where it mentions what are the valid values under that type? I have found an Apple documentation that has some constants like "extraLargeTitle" however that doe not seem to work on a simplepropertycell or objectheader title that I tried.

Could you please advice the possible values for that CSS attribute and if it is possible indeed to change the font type/size on iOS devices ?

Thanks!

 

Accepted Solutions (0)

Answers (2)

Answers (2)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

 Background color should be set using the BackgroundColor Style metadata property.  You can't set the background color of the other elements of the Object Cell.  If they contain a background-color in the Styles.less it is ignored.  This style is used in example screenshot below to give the purple background to the one cell.

.backgroundColor {
    background-color: #5A1BEB;
}

For font-style the list of valid values is the UIFont.TextStyle constants here

Here is an example

ObjectCellStyle.png

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I will have to see if I can get it working and confirm one way or the other.