Ticket #1483 (closed enhancement: invalid)
[patch][cla] Feature to allow widgets within templates
| Reported by: | morris | Owned by: | liucougar |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | 0.3 |
| Severity: | normal | Keywords: | |
| Cc: | cenyongh@… |
Description
LiuCougar? has implemented the ability to define widgets within your html templates.
It is best to look at the test to understand the abilities, but here is a rundown:
A) It allows you to define widgets within your template markup. The feature must be enabled for the template by defining widgetsInTemplate:true in your widget javascript (similar to how isContainer:true works).
B) It allows you to attach those subwidgets to your widget - just use dojoAttachPoint on the widget definition node and the code does the rest of the magic.
C) It allows you to attach events from the subwidgets to your widget - just use dojoAttachEvents.
D) It allows you to 'wrap' subwidgets that are containers, and have the subwidget act as the container within markup e.g. if you have a TabContainer? widget in a template and set dojoAttachPoint="subContainerWidget" then any child widgets (in markup only) get attached to the subwidget rather than the defined widget
This closes #566