org.wicketstuff.datatables.options.ScrollerOptions 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.options;
import de.agilecoders.wicket.jquery.AbstractConfig;
import de.agilecoders.wicket.jquery.IKey;
import de.agilecoders.wicket.jquery.Key;
/**
* https://datatables.net/extensions/scroller/
*/
public class ScrollerOptions extends AbstractConfig {
/**
* https://datatables.net/reference/option/scroller.loadingIndicator
*/
private static final IKey LoadingIndicator = new Key<>("loadingIndicator", false);
/**
* https://datatables.net/reference/option/scroller.boundaryScale
*/
private static final IKey BoundaryScale = new Key<>("boundaryScale", 0.5d);
/**
* https://datatables.net/reference/option/scroller.displayBuffer
*/
private static final IKey DisplayBuffer = new Key<>("displayBuffer", 20);
/**
* https://datatables.net/reference/option/scroller.serverWait
* https://datatables.net/extensions/scroller/examples/initialisation/server-side_processing.html
*/
private static final IKey ServerWait = new Key<>("serverWait", 200);
public ScrollerOptions loadingIndicator(boolean loadingIndicator) {
put(LoadingIndicator, loadingIndicator);
return this;
}
public ScrollerOptions displayBuffer(int displayBuffer) {
put(DisplayBuffer, displayBuffer);
return this;
}
public ScrollerOptions serverWait(int serverWait) {
put(ServerWait, serverWait);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy