They are similar to a point, but I guess what I am envisioning is a scenario like the following where you would like to display a grid, that would refresh it's dataset based on the selected date (or whatever else). The grid may still have page indicator controls attached to it however.
CODE
------------------------------------------------------
| | | |
| <--- | Aug 12, 2009 | --> |
| | | |
------------------------------------------------------
| |
| Data Grid Item 1 |
| |
|----------------------------------------------------|
| |
| Data Grid Item 2 |
| |
|----------------------------------------------------|
| |
| Data Grid Item N |
| |
------------------------------------------------------
| < @ O O O O > |
------------------------------------------------------
I see the control as being similar to the way the TabStrip component works, where we subscribe to an onTabSelect event, and be passed in the event, where we can check an index or additional data that we passed in when creating the tab strip labels.
CODE
new KONtx.control.DataSelector({
default : 1,
dataset : [{index : 1, label : 'Aug 13,2009'},{index : 2, label : 'Aug 14,2009'},{index : 3, label : 'Aug 15,2009'}],
events : {
onDataSetChange : function(event) {
var index = event.payload.index;
var date = event.payload.label;
// Update the grid with the chosen date
this.owner.refreshGrid(date);
}
}
})