org.wicketstuff.datatables.DataTablesJsReference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wicketstuff-datatables Show documentation
Show all versions of wicketstuff-datatables Show documentation
DataTables jQuery integration for Wicket
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 extends HeaderItem> 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