Lose the faff, bring back the fun with toepoke.co.uk
Fork me on GitHub

Fluqi

Ease jQuery UI development with a Fluqi library

Simply play with the properties on the Widget Properties tab, click the Update button to regenerate the C#, HTML and JavaScript. Once the page has loaded have a look at the Widget Methods tab to see how you can interact with the widget.

jQuery Events Log

Tick the Show & Render Events checkbox to start showing the events (and click Update).

Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

  • Note that effects can have an impact on how the widget behaves.

Test Harness Options

Here are the methods available for the jQuery UI control, have a click on the buttons and see how the behaviour of the control changes.

Below is the code required to use the options you have selected above.

									
<%
Dialog dlg = Html.CreateDialog("dlg")
	.Options
		.AddButton("OK", "return OKClicked();")
		.AddButton("Cancel", "return CancelClicked();")
	.Finish()
	.Events
		.SetCreateEvent("createEvent(event, ui);")
		.SetBeforeCloseEvent("beforeCloseEvent(event, ui);")
		.SetOpenEvent("openEvent(event, ui);")
		.SetFocusEvent("focusEvent(event, ui);")
		.SetDragStartEvent("dragStartEvent(event, ui);")
		.SetDragEvent("dragEvent(event, ui);")
		.SetDragStopEvent("dragStopEvent(event, ui);")
		.SetResizeStartEvent("resizeStartEvent(event, ui);")
		.SetResizeEvent("resizeEvent(event, ui);")
		.SetResizeStopEvent("resizeStopEvent(event, ui);")
		.SetCloseEvent("closeEvent(event, ui);")
	.Finish()
;
%>

<%using (dlg.RenderDialog()) {%>
	

Proin ...

<%}%>

Which produces the following HTML mark-up.

									

Proin ...

Which initialises the control with the following [generated] JavaScript.

									




								

Notice how Fluqi generates the minimum JavaScript necessary to configure the widget, minimising the download to the browser.

You can also change the theme used by jQuery UI using the switcher. Also note you can see the events for the control as they happen in the jQuery Events log (this also adds the event code to the JS Code tab ... uncheck the Show & Render Events option to stop this).