0
1つのappceleratorアプリケーションでLabelにプログラム的にフォントスタイルを設定したいとします。appceleratorのラベルにプログラムでスタイルを設定する方法
だから、これは次のとおりです。
socialHistory.tss
".headerTableLabel" : {
top : "10px",
color : "#B3B3B3",
textAlign : "center",
width: '340px',
font : {
fontSize : "20pt",
fontWeight : "Italic"
}
}
これは私のsocialHistory.js
function createHeader(headerText){
var heading = Ti.UI.createView({
height:30, top : 15,
backgroundColor : "#0c7b84"
});
var headingText = Ti.UI.createLabel({
text : headerText,
classes: 'headerTableLabel'
});
heading.add(headingText);
return heading;
}
である私は、下のプログラムで私のラベルのスタイルを設定したいですcreateLabelメソッド。しかし、それは動作しません。