Databases Reference
In-Depth Information
The next step is to add custom attributes to the plug-in. The first attribute will allow the plug-in user
to select a jQuery UI theme. Although a text attribute is used to simplify this tutorial, a select list would
be a better option to make theme selection more declarative. If you're not already there, navigate to the
Create/Edit page for the Calendar plug-in and complete the following steps as shown in Figure 11-41.
1.
Click Add Attribute.
2.
Set Scope to Application.
3.
Set Label to Theme.
4.
Click Create and Create Another.
Figure 11-41. Adding the Theme attribute for the Calendar plug-in
The next two attributes are used to specify item names that can be used to filter the dates returned
by the source query. Specifying item values is optional. Complete the following steps as shown in Figures
11-42 and 11-43.
1.
Set Label to Start Date Item.
2.
Set Type to Page Item.
3.
Click Create and Create Another.
4.
Set Label to End Date Item.
5.
Set Type to Page Item.
6.
Click Create.
Search WWH ::




Custom Search