on 01-30-2017 4:38 PM
Hello,
I want to change the font of title text :"hello" depending on my device : desktop, tablet or iphone.
for example , when i run my app from tablet, i want small font.
How can i do this?
sap.ui.getCore().attachInit(function() {
var shell = new sap.m.Shell({
app: new sap.ui.core.ComponentContainer({
name: "index"
}),
title : "hello"
}).placeAt("content");
1.create css class for different size,
2.in the init function check the device type/size, assign the corresponding class you created in step1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.