Place for some configs

Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores.

Widget v 1.2

Widgets are flexible, dragg-, sort-, and collapseable content boxes. Uses the Store Plugin to store positions

Options read more about inline data attributes

optiondefaultpossible valuesdescriptionsinceinfo
collapsedfalsetrue | false defines if the widget is collapsed1.0gets overwritten by data from the localStorage
loadnullString loads 'String' in the content area1.0
reloadfalseinteger autoreloads the content if load is set. interger is time in seconds1.0
removeContenttruetrue | false replace the content with the loading text while the content is loading1.0
collapsibletruetrue | false widget can be collapsed and expand1.2was "collapseable" in 1.1
sortabletruetrue | false widget can be dragged around1.1
texttextsrequired texts all required texts1.0
onDragfunction(){}function() callback if the widget starts dragging1.0
onDropfunction(){}function() callback if the widget is dropped1.0
onExpandfunction(){}function() callback if the widget gets expand1.0
onCollapsefunction(){}function() callback if the widget collapse1.0

Methods

method namedefaultargumentsdescriptionsinceinfo
save saves the current location and collapse status into the localStorage1.0uses wl_Store
setkey, value sets the the option 'key' with the value 'value'1.0

Usage

$(selector).wl_Widgets([options]);

Calling Methods

$(selector).wl_Widgets('method', [,arg [,arg]]);

Markup

<div class="widgets">
	<div class="widget" id="id_of_widget">
		<h3 class="handle">Heading</h3>
		<div>
			[CONTENT]
		</div>
	</div>
</div>
All widgets must have a unique id or the storage wont work properly

Example

There position get stored with LocalStorage. You can clear the LocalStorage to restore the defaults (requires page refresh)

AJAX Widget

This content get replaced

Another Widget

Just use HTML!

Use any html you like!

AJAX Widget with autoreload

This content get replaced

Collapsed by default