DHTMLX Docs & Samples Explorer

setFontSize (size)

Sets the font-size for the whole form.

  • size - the font-size you want to set to the form
    Available values:
    • 'xx-smal' - xx-small size
    • 'x-small' - extra small size
    • 'small' - small size
    • 'medium' - medium size
    • 'large' - large size
    • 'x-large' - extra large size
    • 'xx-large' - xx-large size
    • 'smaller' - smaller size than the parent element
    • 'larger' - larger size than the parent element
    • length - a fixed size in px, cm, etc.
    • % - percent of the parent element's font size
    • 'inherit' - font-size inherited from the parent element
myForm.setFontSize('15px');