A RetroSearch Logo

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

Search Query:

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

Website Navigation


JavaScript Form - Button | DHTMLX Suite 9 Docs

Button

A simple button that can have an icon. Button can be twoState and can have a badge with a number, which can be useful for displaying the number of new messages, etc.

Related sample: Form. All controls

Adding Button​

You can easily add a Button control during initialization of a form:

const form = new dhx.Form("form_container", {
rows: [
{
type: "button",
name: "button",
text: "Send",
size: "medium",
view: "flat",
color: "primary"
}
]
});
Properties​

View the full list of configuration properties of the Button control.

Working with Button​

You can manipulate a Button control by using methods or events of the object returned by the getItem() method.

For example, you can disable a control on a page:

form.getItem("button").disable();
Methods​

Check the full list of methods of the Button control.

Events​

Check the full list of events of the Button control.


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