Applying a Dojo widget to a control
Once Dojo resources are available on an XPage, you can apply them to controls.
About this task
Procedure
- Put focus on the control.
- Select Dojo on the Properties tab.
- Set
Dojo typeto the name of a Dojo module resource, for example,dijit.form.NumberSpinner.Under All Properties, this isdojoType. - To set an attribute value:
- Click the Add icon.
- Specify the name of the attribute, for example,
valueorsmallDeltafordijit.form.NumberSpinner. - Specify the value of the attribute, for example, 100
for
valueor 5 forsmallDeltaindijit.form.NumberSpinner.
Under All Properties, this isdojoAttributes.
Results
dijit.form.NumberSpinner applied
to an Edit Box control, you will see up and down arrows (the spinner)
on the side of the edit box. The initial value of the edit box is
the value attribute. When you click the Up and Down arrows,
the value increments and decrements by the smallDelta attribute.