ColumnConfig
subclass and a ComponentPlugin
that adds the ability for each row to be expanded, showing custom content that spans all the rows columns. - Events:
- BeforeExpand : RowExpanderEvent(rowExpander, model, rowIndex, bodyElement)
Fires before a row is expanded. Listeners can cancel the action by calling {@link BaseEvent#setCancelled(boolean)}. - rowExpander : this
- model : the model
- rowIndex : the row index
- bodyElement : the body element
- Expand : RowExpanderEvent(rowExpander, model, rowIndex, bodyElement)
Fires after a row is expanded. - rowExpander : this
- model : the model
- rowIndex : the row index
- bodyElement : the body element
- BeforeCollapse : RowExpanderEvent(rowExpander, model, rowIndex, bodyElement)
Fires before a row is collapsed. Listeners can cancel the action by calling {@link BaseEvent#setCancelled(boolean)}. - rowExpander : this
- model : the model
- rowIndex : the row index
- bodyElement : the body element
- Collapse : RowExpanderEvent(rowExpander, model, rowIndex, bodyElement)
Fires after a row is collapsed. - rowExpander : this
- model : the model
- rowIndex : the row index
- bodyElement : the body element
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
XTemplate tpl = XTemplate.create("<p><b>Company:</b> {name}</p><br><p><b>Summary:</b> {desc}</p>");
RowExpander expander = new RowExpander();
expander.setTemplate(tpl);
configs.add(expander);
ColumnConfig column = new ColumnConfig();
column.setId("name");
Related Classes of com.extjs.gxt.ui.client.widget.grid.RowExpander
Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.