Skip to content

Default Configuration

desdev edited this page Oct 1, 2010 · 4 revisions
options: {
	debug: false,
	disabled: false,
	titleHide: false,
	menuEnable: false,

	buttons: {
		jqueryui: {
			enable: false,
			cancelIcon: "ui-icon-circle-close",
			previousIcon: "ui-icon-circle-triangle-w",
			nextIcon: "ui-icon-circle-triangle-e",
			finishIcon: "ui-icon-circle-check"
		},
		cancelHide: false,
		cancelType: "button",
		finishType: "button",
		cancelText: "Cancel",
		previousText: "Previous",
		nextText: "Next",
		finishText: "Finish"
	},

	counter: {
		enable: false,
		type: "count",
		progressbar: false,
		location: "footer",
		startCount: true,
		startHide: false,
		finishCount: true,
		finishHide: false,
		appendText: "Complete",
		orientText: "left"
	},

	effects: {
		enable: false,
		step: {
			enable: true,
			hide: {
				type: "slide",
				options: {
					direction: "left"
				},
				duration: "normal",
				callback: $.noop
			},
			show: {
				type: "slide",
				options: {
					direction: "left"
				},
				duration: "normal",
				callback: $.noop
			}
		},
		title: {
			enable: true,
			hide: {
				type: "slide",
				options: {},
				duration: "normal",
				callback: $.noop
			},
			show: {
				type: "slide",
				options: {},
				duration: "normal",
				callback: $.noop
			}
		},
		menu: {
			enable: true,
			change: {
				type: "highlight",
				options: {},
				duration: "normal",
				callback: $.noop
			}
		},
		counter: {
			enable: true,
			change: {
				type: "highlight",
				options: {},
				duration: "normal",
				callback: $.noop
			}
		}
	},

	cancel: $.noop,
	previous: $.noop,
	next: $.noop,
	finish: $.noop,

	changestep: function (event, ui) {
		if (event.isDefaultPrevented()) {
			if (typeof event.nextStepIndex !== "undefined") {
				ui.wizard.jWizard("changeStep", event.nextStepIndex);
				return false;
			}
		}
	}
}
Clone this wiki locally