Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sourceforge.jsdialect.toggle;
 
Thymeleaf processor to add animation to hide and show content according to the values of a select element. Usage:
 <select th:multitoogle="box1, box2">
        <option>Foo</option>
        <option>Bar</option>
    </select>
    <div id="box1"> Lorem ipsum... </div>
    <div id="box2"> Lorem ipsum... </div>
 
 
    private JsDialect dialect;
    public MultiToggleAttrProcessor(JsDialect dialect) {
        super("multitoggle");
        this. = dialect;
    }
    @Override
    public int getPrecedence() {
        return 10000;
    }
    @Override
    public ProcessorResult processAttribute(Arguments argumentsElement elementString attributeName) {
        .addScript(arguments.);
        new MultiToggleCommand(argumentselementattributeName).execute();
        return .;
    }
New to GrepCode? Check out our FAQ X