Skip to content
Snippets Groups Projects
Commit 66c21352 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Intermediate step with a reset button but it don't work.

Need to redesign the gridfilter as a component.
parent 7de6cef0
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ mainGrid = function(provider, response){ ...@@ -30,7 +30,7 @@ mainGrid = function(provider, response){
var cfg = response.result; var cfg = response.result;
// console.log("Grid Model"); // console.log("Grid Model");
// console.dir(cfg); console.dir(cfg);
// instantiate the grid and the filter // instantiate the grid and the filter
var grid = Ext.ComponentMgr.create(cfg); var grid = Ext.ComponentMgr.create(cfg);
...@@ -52,9 +52,13 @@ mainGrid = function(provider, response){ ...@@ -52,9 +52,13 @@ mainGrid = function(provider, response){
items: [grid.filter], items: [grid.filter],
width: 300, width: 300,
split: true, split: true,
buttons: [{text: 'reset',
ref: '../../resetButton'}], // expose at the panel level
}], }],
}); });
// panel.resetButton.on('click', grid.filter.onReset);
// the viewport to hold the grid // the viewport to hold the grid
// using all space available in the browser // using all space available in the browser
var vp = new Ext.Viewport({ var vp = new Ext.Viewport({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment