Skip to content
Snippets Groups Projects
Commit 8b5e6444 authored by Florian Gnaegi - frentix GmbH's avatar Florian Gnaegi - frentix GmbH
Browse files

OO-1068 mark active table renderer

parent c399d99e
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,11 @@ public class FlexiTableElementImpl extends FormItemImpl implements FlexiTableEle
@Override
public void setRendererType(FlexiTableRendererType rendererType) {
// activate active render button
customTypeButton.setActive(FlexiTableRendererType.custom == rendererType);
classicTypeButton.setActive(FlexiTableRendererType.classic == rendererType);
dataTablesTypeButton.setActive(FlexiTableRendererType.dataTables == rendererType);
// update render type
this.rendererType = rendererType;
if(component != null) {
component.setDirty(true);
......
......@@ -163,8 +163,8 @@ public class RepositoryEntryListController extends FormBasicController
model = new RepositoryEntryDataModel(dataSource, columnsModel);
tableEl = uifactory.addTableElement(ureq, getWindowControl(), "table", model, 20, true, getTranslator(), formLayout);
tableEl.setRendererType(FlexiTableRendererType.custom);
tableEl.setAvailableRendererTypes(FlexiTableRendererType.custom, FlexiTableRendererType.classic);
tableEl.setRendererType(FlexiTableRendererType.custom);
tableEl.setSearchEnabled(true);
tableEl.setCustomizeColumns(false);
tableEl.setElementCssClass("o_coursetable o_rendertype_custom");
......
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