Difference between revisions of "Wallpapers"
From CCIL
(Created page with "The ''wallpapers'' component provide nice, changing wallpapers for your interface. === Include === ==== Maven ==== <pre> <dependency> <groupId>net.ccil</groupId> <version>...") |
(No difference)
|
Revision as of 09:06, 20 April 2017
The wallpapers component provide nice, changing wallpapers for your interface.
Include
Maven
<dependency> <groupId>net.ccil</groupId> <version>${ccil.version}</version> <artifactId>ccil-ui-wallpapers</artifactId> <scope>runtime</scope> <type>war</type> </dependency>
HTML
<!-- JavaScript --> <script type='text/javascript' src='ccil/js/ccil.js'></script> <script type='text/javascript' src='ccil/js/ccil-wallpapers.js'></script>
Requires
API
path
Specifies the path to look for collections.json file.
CCIL.ui.wallpaper.path = 'dym/wallpapers/';
The default value is 'ccil/wallpapers/', if you include the ccil-ui-wallpapers-core component, you will have the following pre-defined set:
- Nature
- Aircraft
- Cars
- Yana
setRandom
Sets a random wallpaper as a background of the page.
CCIL.ui.wallpaper.setRandom();