Provides a set of method to re-arrange the structure of grid.
| Parameter | Type | Description |
|---|---|---|
| grid | undefined | |
| args | undefined |
Plugin properties - leveraged with default and user specified properties. e.g. for dnd plugin, it may look like {"class": dojox.grid.enhanced.plugins.DnD, "dependency": ["nestedSorting"], ...}
Private properties/methods shouldn't be mixin-ed anytime.
Find pages that contain visible rows
{topPage: xx, bottomPage: xx, invalidPages: [xx,xx,...]}
| Parameter | Type | Description |
|---|---|---|
| points | undefined |
| Parameter | Type | Description |
|---|---|---|
| sourceGrid | undefined | |
| cellsToMove | undefined | |
| target | undefined |
| Parameter | Type | Description |
|---|---|---|
| cellsToClear | undefined |
Connects specified obj/event to specified method of this object.
| Parameter | Type | Description |
|---|---|---|
| obj | undefined | |
| event | undefined | |
| method | undefined |
var plugin = new dojox.grid.enhanced._Plugin(grid,"myPlugin",{...});
// when foo.bar() is called, call the listener in the scope of plugin
plugin.connect(foo, "bar", function(){
console.debug(this.xxx());//"this" - plugin scope
});
| Parameter | Type | Description |
|---|---|---|
| cellsToMove | undefined | |
| target | undefined |
Disconnects handle and removes it from connection list.
| Parameter | Type | Description |
|---|---|---|
| handle | undefined |
| Parameter | Type | Description |
|---|---|---|
| sourceGrid | undefined | |
| rowsToMove | undefined | |
| targetPos | undefined |
| Parameter | Type | Description |
|---|---|---|
| cellsToMove | undefined | |
| target | undefined |
Move a set of columns to a given position.
| Parameter | Type | Description |
|---|---|---|
| colsToMove | Integer[] | Array of column indexes. |
| targetPos | Integer | The target position |
Move a set of rows to a given position
| Parameter | Type | Description |
|---|---|---|
| rowsToMove | Integer[] | Array of row indexes. |
| targetPos | Integer | The target position |
| Parameter | Type | Description |
|---|---|---|
| rowsToRemove | undefined |
| Parameter | Type | Description |
|---|---|---|
| args | undefined |
Subscribes to the specified topic and calls the specified method of this object.
| Parameter | Type | Description |
|---|---|---|
| topic | undefined | |
| method | undefined |
var plugin = new dojox.grid.enhanced._Plugin(grid,"myPlugin",{...});
// when /my/topic is published, call the subscriber in the scope of plugin
// with passed parameter - "v"
plugin.subscribe("/my/topic", function(v){
console.debug(this.xxx(v));//"this" - plugin scope
});
Un-subscribes handle and removes it from subscriptions list.
| Parameter | Type | Description |
|---|---|---|
| handle | undefined |
var plugin = new dojox.grid.enhanced._Plugin(grid,"myPlugin",{...});
// when /my/topic is published, call the subscriber in the scope of plugin
// with passed parameter - "v"
plugin.subscribe("/my/topic", function(v){
console.debug(this.xxx(v));//"this" - plugin scope
});
var plugin = new dojox.grid.enhanced._Plugin(grid,"myPlugin",{...});
// when /my/topic is published, call the subscriber in the scope of plugin
// with passed parameter - "v"
plugin.subscribe("/my/topic", function(v){
console.debug(this.xxx(v));//"this" - plugin scope
});
| Parameter | Type | Description |
|---|---|---|
| store | undefined |
var plugin = new dojox.grid.enhanced._Plugin(grid,"myPlugin",{...});
// when /my/topic is published, call the subscriber in the scope of plugin
// with passed parameter - "v"
plugin.subscribe("/my/topic", function(v){
console.debug(this.xxx(v));//"this" - plugin scope
});
var plugin = new dojox.grid.enhanced._Plugin(grid,"myPlugin",{...});
// when /my/topic is published, call the subscriber in the scope of plugin
// with passed parameter - "v"
plugin.subscribe("/my/topic", function(v){
console.debug(this.xxx(v));//"this" - plugin scope
});