伙计们我想修复某些列宽...我想使用setFixed(true)...这里我是如何创建列的
private ColumnConfig<ContentAttribute, ContentAttribute> createActionsColumn(int actionsColumnWidth) {
final BackofficeButtonCompositeCell<ContentAttribute> buttonsCell = new BackofficeButtonCompositeCell<ContentAttribute>(
createActionsGridCellRenderer().getButtonsCells());
final DtoValueProvider<ContentAttribute> valueProvider = new DtoValueProvider<ContentAttribute>(ACTIONS_COLUMN_ID);
return SenchaGridUtils.createDefaultColumnConfig(valueProvider, actionsColumnWidth, MessagesFactory.bo().actions(),
buttonsCell);
}
然后如何修复它的宽度?
答案 0 :(得分:0)
为什么不:
ColumnConfig columnConfig = SenchaGridUtils.createDefaultColumnConfig(valueProvider, actionsColumnWidth, MessagesFactory.bo().actions(), buttonsCell);
columnConfig.setFixed(true);
return columnConfig;