Wallpapers

From CCIL
Revision as of 09:06, 20 April 2017 by Atanas.ilchev (Talk | contribs) (Created page with "The ''wallpapers'' component provide nice, changing wallpapers for your interface. === Include === ==== Maven ==== <pre> <dependency> <groupId>net.ccil</groupId> <version>...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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();