Page 1 of 1
Change in textbox size
Posted: Tue Aug 23, 2016 4:36 pm
by Raga Mounika
Hi Team,
How can you make sure that the textbox size for textfield can be modified?
If it is possible please provide the code for changing the size of textbox.
Thank you.
Regards,
Mounika
Re: Change in textbox size
Posted: Wed Aug 24, 2016 12:11 pm
by alex_jitianu
Hi Mounika,
You can't impose a height for form controls but you can make them inherit the font size from the element they are bound to:
Code: Select all
text:before {
font-size:20px;
content: "Label" oxy_textfield(edit, '@scale', width, 10em, fontInherit, true);
}
In the previous example, the label preceding the form control will use the same font size. You can impose a different font size for the label like this:
Code: Select all
text:before {
font-size:20px;
content:
oxy_label(text, 'Label', styles, 'font-size:10px')
oxy_textfield(edit, '@scale', width, 10em, fontInherit, true);
}
To see all the properties supported by the form controls please look inside
our documentation.
Best regards,
Alex