1. Subject
Dijit has four themes to choose from: Claro, tundra, Soria, and nihilo.
To use dijit theme, you also need to introduce the CSS file of the theme and add the CSS style name to the body element on your page.
<! Doctype HTML>
Note: You can use Div block-level elements to restrict dijit themes to only a small part of a page. If CSS is not set on the body, then any pop-up parts (for example, use pop-up dijit/form/combobutton dijit/form/dropdownbutton, dijit/form/select) create and place the pop-up Dom structure directly sub-elements, will not be applied to your topic.
2. dijit/form/button
A button may be the most basic component on any page. It acts on user input and allows users to trigger actions, such as submitting forms or resetting values on forms.
-- Create button in declarative mode:
<!DOCTYPE html>
-- Create a button by programming:
<!DOCTYPE html>
Note: If you use the components of dojo, make sure that the script tag "parseonload: True" is added to dojo. js on the data-Dojo-config property page. In addition, if you want to parse the code, you must specify require (["dojo/parser"]).
2.1 Label attribute: String
It is used to specify a tag for a button in the tag or by programming.
2.2 showlabel attribute: Boolean
Indicates whether to display the text label value in the button part. The default value is true.
2.3 iconclass attributes: String
It is used to specify a CSS class for the associated image for the button, so that the button can become the same as the icon. Is to embed the icon into the button.
2.4 onclick (event) event
It is called when a single-host button is used.
2.5 setlabel (content) Method
Change the button tag value.
Http://www.myexception.cn/web/423404.html
This article is from the "IT technology learning and communication" blog!
Dojo learning notes (12): dojo Form Controls