Servis-Rhino 4211B Betriebsanweisung Seite 149

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 298
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 148
page.
claro
tundra
noir
soria
<style type="text/css">
@import "http://.../dojo/resources/dojo.css";
@import "http://.../dijit/themes/soria/soria.css";
</style>
Form Widgets
All Dijit widgets inherit from their base called dijit.form._FormWidget. You can think of
this as the Java Interface against which all other form widgets are derived meaning that they have a
consistent set of semantics.
There are some common properties associated with each Form widget. These are:
alt
baseClass
disabled
name
tabIndex
value
Some core methods:
setDisabled()
isFocusable()
focus()
onChange()
setValue()
getValue()
undo()
dijit/form/Form
Dojo provides an equivalent for the HTML <form> element that provides a set of functions for
sending and receiving form data. However, one of the most interesting aspects of this widget is that
it can control validation of other contained form widgets.
When any other form widgets contained within the form flip the state of the form as a whole from
valid to invalid or visa versa, an event is triggered. This event can be monitored with:
watch("state", function(property, oldValue, newValue) {
Page 149
Seitenansicht 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 297 298

Kommentare zu diesen Handbüchern

Keine Kommentare