Wiki source code of ERXMonthView
Last modified by David Holt on 2008/06/13 17:05
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | To use this component put this in your .java file: | ||
| 2 | |||
| 3 | {{code 0="java"}} | ||
| 4 | |||
| 5 | public ERXDateGrouper aGrouper = new ERXDateGrouper(); | ||
| 6 | |||
| 7 | {{/code}} | ||
| 8 | |||
| 9 | and bind aGrouper in your WOD: | ||
| 10 | |||
| 11 | {{code 0="html"}} | ||
| 12 | <webobject name = "monthView"></webobject> | ||
| 13 | {{/code}} | ||
| 14 | |||
| 15 | {{code}} | ||
| 16 | |||
| 17 | monthView : ERXMonthView { | ||
| 18 | grouper = aGrouper; | ||
| 19 | } | ||
| 20 | |||
| 21 | {{/code}} | ||
| 22 | |||
| 23 | The result is a nice little calendar component that you can further customize (a year display was added to this one). | ||
| 24 | |||
| 25 | [[image:attach:041.jpg]] |