@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); /* String addClass = level==1?"nav-first-level": (level==2?"nav-second-level": (level==3?"nav-third-level":"nav-"+level+"-level")); tag.append("class", addClass, " ");*/ //tag.append("class", "nav-dropdown-items", " "); }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.append("class", "bpmn", " "); }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.append("class", "wc-item", " "); }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.append("class", "dashboard", " "); }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); String widgetStyleClass = getWidgetStyleClass(); if(widgetStyleClass!=null) { tag.append("class", widgetStyleClass, " "); } }
@Override protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, "table"); tag.append("class", "table table-sm structure-table", " "); super.onComponentTag(tag); }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); internalOnComponentTag(tag, active(), striped()); }
@Override protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, "ul"); super.onComponentTag(tag); tag.append("class", "nav nav-tabs", " "); tag.put("role", "tablist"); }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); Integer value = getModelObject(); Attributes.set(tag, "style", String.format("width: %s%%", value)); Attributes.set(tag, "aria-valuenow", String.valueOf(value)); Attributes.set(tag, "aria-valuemin", String.valueOf(ProgressBar.MIN)); Attributes.set(tag, "aria-valuemax", String.valueOf(ProgressBar.MAX)); if (!ProgressBar.Type.DEFAULT.equals(type)) { Attributes.addClass(tag, type().cssClassName()); } }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); checkComponentTag(tag, "div"); Attributes.addClass(tag, "alert"); Attributes.addClass(tag, type); if (dismissable) { Attributes.addClass(tag, "alert-dismissible"); } else { Attributes.removeClass(tag, "alert-dismissible"); } }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); checkComponentTag(tag, "div"); Attributes.addClass(tag, "modal"); if (useFadein()) { Attributes.addClass(tag, "fade"); } else { Attributes.removeClass(tag, "fade"); } if (closeOnEscapeKey) { Attributes.set(tag, "tabindex", "-1"); } if (backdrop != Backdrop.TRUE) { Attributes.set(tag, "data-backdrop", backdrop.name().toLowerCase() ); } // ARIA Attributes.set(tag, "role", "dialog"); Attributes.set(tag, "aria-labelledby", headerLabel.getMarkupId()); Attributes.set(tag, "aria-hidden", "true"); }