public class KendoUILibrarySettings extends Object
public class MyApplication extends WebApplication
{
public void init()
{
super.init();
this.getMarkupSettings().setStripWicketTags(true); // important
KendoUILibrarySettings settings = KendoUILibrarySettings.get();
settings.setJavaScriptReference(new JavaScriptResourceReference(...)); // if you want to change the js version
settings.setCommonStyleSheetReference(new CssResourceReference(MyApplication.class, "kendo.common.min.css"));
settings.setThemeStyleSheetReference(new CssResourceReference(MyApplication.class, "kendo.custom.min.css"));
}
}
| Modifier and Type | Method and Description |
|---|---|
static KendoUILibrarySettings |
get()
Gets the
KendoUILibrarySettings instance |
org.apache.wicket.request.resource.ResourceReference |
getCommonStyleSheetReference()
Gets the Kendo UI common stylesheet resource reference
|
org.apache.wicket.request.resource.ResourceReference |
getJavaScriptReference()
Gets the Kendo UI javascript resource reference
|
org.apache.wicket.request.resource.ResourceReference |
getMobileStyleSheetReference()
Gets the Kendo UI mobile stylesheet resource reference
|
org.apache.wicket.request.resource.ResourceReference |
getThemeStyleSheetReference()
Gets the Kendo UI theme stylesheet resource reference
|
void |
setCommonStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the Kendo UI common stylesheet resource reference
|
void |
setJavaScriptReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the Kendo UI javascript resource reference
|
void |
setMobileStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the Kendo UI mobile stylesheet resource reference
|
void |
setThemeStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference)
Sets the Kendo UI theme stylesheet resource reference
|
public static KendoUILibrarySettings get()
KendoUILibrarySettings instanceKendoUILibrarySettings instancepublic org.apache.wicket.request.resource.ResourceReference getJavaScriptReference()
ResourceReferencesetJavaScriptReference(ResourceReference)public void setJavaScriptReference(org.apache.wicket.request.resource.ResourceReference reference)
reference - the ResourceReferencepublic org.apache.wicket.request.resource.ResourceReference getCommonStyleSheetReference()
null by default, meaning the style is supplied through the HTML page (<link rel="stylesheet" type="text/css" href="..." />)setCommonStyleSheetReference(ResourceReference)public void setCommonStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference)
reference - the ResourceReferencepublic org.apache.wicket.request.resource.ResourceReference getThemeStyleSheetReference()
null by default, meaning the style is supplied through the HTML page (<link rel="stylesheet" type="text/css" href="..." />)setThemeStyleSheetReference(ResourceReference)public void setThemeStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference)
reference - the ResourceReferencepublic org.apache.wicket.request.resource.ResourceReference getMobileStyleSheetReference()
null by default, meaning the style is supplied through the HTML page (<link rel="stylesheet" type="text/css" href="..." />)setMobileStyleSheetReference(ResourceReference)public void setMobileStyleSheetReference(org.apache.wicket.request.resource.ResourceReference reference)
reference - the ResourceReferenceCopyright © 2021 7thWeb. All rights reserved.