开发者

How can I decrease the font size of the showAlertDialog title?

开发者 https://www.devze.com 2022-12-15 01:42 出处:网络
开发者_如何学GoHow can I decrease the font size of the showAlertDialog title?A (dirty) way is to overwrite the .dialog-title class of the palm css file. But this affects all alert dialogs of your app.
开发者_如何学Go

How can I decrease the font size of the showAlertDialog title?


A (dirty) way is to overwrite the .dialog-title class of the palm css file. But this affects all alert dialogs of your app.

.dialog-title {
font-size:5px !important;

}

A better way is to use your one dialog template with:

this.controller.showDialog({
       template: 'dialogs/sample-dialog',
       assistant: new SampleDialogAssistant(this),
       wisdom: randomLorem(),
       preventCancel:true
 });

See Palm Developer Guide for more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消