I would like to have a p:tieredMenu with many menuItems.
Unfortunately the number of items is too much, therefore I would like to have a maximum height from the menu and than scrolling.
I´ve tried this CSS
Code: Select all
.placeholderMenu.ui-menu.ui-menu-dynamic {
height: 300px;
overflow-y: auto;
}
I´ve tried already:
Code: Select all
<p:commandButton id="placeholderButton" value="Placeholder"
type="button"
icon="fa fa-eyedropper" styleClass="Fs12 White"/>
<p:tieredMenu
model="#{placeholderMenuNotLazyController.findAllPlaceholderByEditor('editorPredefinedTextWidgetVar')}"
overlay="true" trigger="placeholderButton" my="left top"
at="left bottom" styleClass="placeholderMenu" />