There is a possibility to make changes in the look and feel of a form. For this you need to take the following steps:
<style>
.my_first_class {
/*some styles*/
}
.my_second_class {
/*some styles*/
}
</style>
var form = new dhx.Form({
cellCss:"my_first_class my_second_class"
});
Related sample: Form custom styles. - DHTMLX Form
You can modify styling of Form controls as well using the cellCss option inside the object of a related control.
<style>
.bg-white .dhx_input {
background: #fff;
}
</style>
var form = new dhx.Form("form-sample", {
cellCss:"bg-gray",
rows: [
{
cellCss:"bg-white",
type: "input",
label: "Name",
placeholder: "John Doe"
},
{
cellCss:"bg-white",
type: "input",
label: "Email",
placeholder: "jd@mail.name"
}
]
});
Related sample: Form custom styles. - DHTMLX Form
Back to top