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>  var form = new dhx.Form("form", {    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. Form Custom Styles

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

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