Handle Column

The BPC provides a column that allows the user to change the order of rows in Ext.grid.Panel.

Use

To use this column, the plugin gridviewdragdrop must be integrated in Ext.grid.Panel. The column is referenced in the column configuration by bpcHandleColumn

Beispiel zur Verwendung der bpcHandleColumn
Ext.define("example.handlecolumn", {
   extend     : "Ext.grid.Panel",

    viewConfig : {
      plugins : {
         ptype : "gridviewdragdrop"
      }
   },
    columns : [
         {
            xtype : "bpcHandleColumn"
         },
         {
            localized : {
               text : "CORE_NAME"
            },
            dataIndex : "name",
            flex : 1
         }
      ]
});

In the interface, the bpcHandleColumn looks like this:

handlecolumn

Keywords: