use of de.tudarmstadt.ukp.clarin.webanno.ui.annotation.sidebar.SidebarPanel in project webanno by webanno.
the class AnnotationPage method createLeftSidebar.
private SidebarPanel createLeftSidebar() {
SidebarPanel leftSidebar = new SidebarPanel("leftSidebar", getModel(), detailEditor, () -> getEditorCas(), AnnotationPage.this);
// Override sidebar width from preferences
leftSidebar.add(new AttributeModifier("style", LambdaModel.of(() -> String.format("flex-basis: %d%%;", getModelObject().getPreferences().getSidebarSize()))));
return leftSidebar;
}
Aggregations