Buy me a coffee :)

Wicket - jQuery UI

jQuery UI integration in Wicket 6.x, Wicket 7.x , Wicket 8.x & Wicket 9.x

jFontSize Plugin (sample)

A-  A  A+

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

Description

Sources

package com.googlecode.wicket.jquery.ui.samples.jqueryui.plugins;

import com.googlecode.wicket.jquery.core.Options;
import com.googlecode.wicket.jquery.ui.plugins.FontSizeBehavior;
import com.googlecode.wicket.jquery.ui.samples.JQuerySamplePage;

public class FontSizePage extends JQuerySamplePage
{
	private static final long serialVersionUID = 1L;

	public FontSizePage()
	{
		Options options = new Options();
		options.set("sizeChange", 3);

		this.add(new FontSizeBehavior("#paragraph", options));
	}
}
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<head>
<wicket:head>
	<title>Wicket jQuery UI: plugin / fontsize</title>

</wicket:head>
</head>
<body>
<wicket:extend>
	<div id="demo-panel">
		<a id="jfontsize-minus" href="javascript:;">A-</a>&nbsp;
		<a id="jfontsize-default" href="javascript:;">A</a>&nbsp;
		<a id="jfontsize-plus" href="javascript:;">A+</a>
	
		<p id="paragraph">
			Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
			Integer ut neque. Vivamus nisi metus, molestie vel, gravida in,
			condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros.
			Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum
			a velit eu ante scelerisque vulputate.
		</p>
	</div>
</wicket:extend>
</body>
</html>