@Api @Provides(value=WebScripts.class) public interface WebScripts
JavaScript
script into given UIFragment.Modifier and Type | Interface and Description |
---|---|
static class |
WebScripts.Link |
static class |
WebScripts.UrlCacheParameter
Class to handle cache parameters for fragments using in scripts url.
|
Modifier and Type | Field and Description |
---|---|
static String |
FRAGMENTS_URL_PREFIX |
Modifier and Type | Method and Description |
---|---|
void |
initFragment(String fragmentId)
UI fragment initialization.
|
ScriptInjection |
inject(String fragmentId,
org.springframework.core.io.Resource resource)
Injects given resource into given fragment identified by id.
|
ScriptInjection |
inject(UIFragment fragment,
org.springframework.core.io.Resource resource)
Injects given resource into given
UIFragment . |
static final String FRAGMENTS_URL_PREFIX
void initFragment(String fragmentId)
fragmentId
- fragment idScriptInjection inject(UIFragment fragment, org.springframework.core.io.Resource resource)
UIFragment
.fragment
- ui fragmentresource
- resource with injected javascript
contentinject(String, Resource)
ScriptInjection inject(String fragmentId, org.springframework.core.io.Resource resource)
fragment
- ui fragment idresource
- resource with injected javascript
contentCopyright © 2023 Suncode. All rights reserved.