Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.agilecoders.wicket.core.markup.html.bootstrap.button;
 
 
A jquery function abstraction for dropdowns.

Author(s):
miha
public class DropDownJqueryFunction extends JQuery.AbstractFunction {

    
shortcut for DropDownJqueryFunction.

Parameters:
action the dropdown action to execute.
    public static DropDownJqueryFunction dropdown(final String action) {
        return new DropDownJqueryFunction(action);
    }

    
shortcut for DropDownJqueryFunction.
    public static DropDownJqueryFunction dropdown() {
        return new DropDownJqueryFunction(null);
    }

    
Construct.

Parameters:
action the button action to execute.
    public DropDownJqueryFunction(final String action) {
        super("dropdown");
        if (!Strings.isEmpty(action)) {
            addParameter(toParameterValue(action));
        }
    }
New to GrepCode? Check out our FAQ X