Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sourceforge.jsdialect.carousel;
 
Thymeleaf processor to convert content into a carousel of images. Usage: Second argument is height / width image ratio. Third argument indicates whether carousel should start rolling or paused. Possible values for this third argument: autoplay, pause
 <div class="carousel" js:carousel="carousel, 22, autoplay">
         <div id="carousel">
             <div class="slide">
                 <img href="image1.jpg" alt="Image 1" />
             </div>
             <div class="slide">
                 <img href="image2.jpg" alt="Image 2" />
             </div>
         </div>
     </div>
 
 
    private JsDialect dialect;
    public CaroufredselAttrProcessor(JsDialect dialect) {
        super("carousel");
        this. = dialect;
    }
    @Override
    public int getPrecedence() {
        return . + 1;
    }
    @Override
    public ProcessorResult processAttribute(Arguments argumentsElement elementString attributeName) {
        .addScript(arguments.);
        .addScript(arguments.);
        new CaroufredselCommand(argumentselementattributeName).execute();
        return .;
    }
New to GrepCode? Check out our FAQ X