All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.datatables.DataTablesJsReference Maven / Gradle / Ivy

There is a newer version: 10.3.0
Show newest version
package org.wicketstuff.datatables;

import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
import org.apache.wicket.Application;
import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.request.resource.ResourceReference;

import java.util.ArrayList;
import java.util.List;

/**
 *
 */
public class DataTablesJsReference extends WebjarsJavaScriptResourceReference {
    public DataTablesJsReference() {
        super("/datatables/current/js/jquery.dataTables.js");
    }

    @Override
    public Iterable getDependencies() {
        List dependencies = new ArrayList();
        ResourceReference jQueryReference = Application.get().getJavaScriptLibrarySettings().getJQueryReference();
        dependencies.add(JavaScriptHeaderItem.forReference(jQueryReference));
        return dependencies;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy