A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/form/customization/ below:

JavaScript Form - Customization | DHTMLX Suite 9 Docs

There is a possibility to make changes in the look and feel of a form.

<style>
.custom {
--dhx-background-primary: rgb(238, 238, 238);
--dhx-color-primary: #118d8d;
--dhx-color-primary-active: #118d8d;
--dhx-color-primary-hover: #1ad1d1;
}
</style>

<script>
const form = new dhx.Form("form_container", {
padding: 40,
width: 400,
css: "custom",
rows: [
{
type: "input",
label: "Name",
placeholder: "John Doe",
},
{
type: "input",
label: "Email",
placeholder: "jd@mail.name"
},

]
});
</script>

You can modify styling of Form controls as well using the css option inside the object of a related control.

<style>
.custom {
--dhx-background-primary: rgb(238, 238, 238);
--dhx-color-primary: #118d8d;
--dhx-color-primary-active: #118d8d;
--dhx-color-primary-hover: #1ad1d1;
}
.name {
--dhx-color-primary-active: #d1b81a;
}
</style>

<script>
const form = new dhx.Form("form_container", {
padding: 40,
width: 400,
css: "custom",
rows: [
{
css: "name",
type: "input",
label: "Name",
placeholder: "John Doe"
},
{
type: "input",
label: "Email",
placeholder: "jd@mail.name"
},

]
});
</script>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4