Skip to main content

css

the name of a CSS class(es) applied to the control group

css?: string;

Example

<style>
.bg-white .dhx_input {
background: #fff;
}
</style>


const form = new dhx.Form("form_container", {
css:"bg-gray",
rows: [
{
css:"bg-white",
type: "input",
label: "Name",
placeholder: "John Doe"
},
{
css:"bg-white",
type: "input",
label: "Email",
placeholder: "jd@mail.name"
},
// more options
]
});

Related sample: Form. Styling (custom CSS)

Note, that the DHTMLX library provides a set of own CSS classes that you can also apply to change the appearance of Form:

const form = new dhx.Form("form_container", {
css: "dhx_widget--bg_white"
});