Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
...
There are currently 3 font size option for every application at runtime that are: (1)Small 13px (2)Medium 17px (3) Big 20px. And the default font size is 13px upon loading the app, this article will be a guide on how to change the default font size. to another size upon loading.
Make sure that your app has "Enable Font Size Control?" enabled through UI Builder > Settings > Configure Layout > Configure "<theme>" > Advanced.
...
Figure 1: Enable font size control
Figure 2 shows the default font size.
Info | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The default size are as follow: (1)Small 13px (2)Medium 17px (3) Big 20px. It is possible to change the default font size through pasting one of the following code into the custom css in UI Builder > Settings > Configure Layout > Configure "<theme>" > Advanced. The idea is to overwrite the values in the class defined by the theme itself. However, there's a limitation that this modification only affects fonts that is controlled by the font-size controller. Thus, it is skipped for fonts such as the content title. Change the properties "font-size" and "line-height" accordingly to your requirements. You may also add any additional properties as you wish.
For customizing medium font size
For customizing large font size
|
Figure 2: Default font
To change the default font upon loading, paste the following code to the custom Javascript field in UI Builder > Settings > Configure Layout > Configure "<theme>" > Advanced. The code simulate a click on the large font size icon as soon as the page load.
...
Figure 3: Javascript insertion.
Result:
Figure 4: Default font is set to Big Font instead of Small Font upon every page load.
View file | ||||
---|---|---|---|---|
|
...