Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.agilecoders.wicket.core.markup.html.bootstrap.button.dropdown;
 
 
A simple header for DropDownButton and SplitButton submenus.

Author(s):
miha
public class MenuHeader extends AbstractLink {

    
Construct.

Parameters:
label Header label
    public MenuHeader(final IModel<Stringlabel) {
        super(ButtonList.getButtonMarkupId());
        setRenderBodyOnly(true);
        setBody(label);
    }
    @Override
    protected void onConfigure() {
        super.onConfigure();
        getParent().add(new CssClassNameAppender("dropdown-header"));
    }
New to GrepCode? Check out our FAQ X