Hamburger

html


<span data-urushi-type="hamburger"></span>

javascript


//main.js
require.config(requireConfig);
require(['templateEngine', 'templateConfig', 'Urushi'], function(
		templateEngine,
		templateConfig,
		Urushi) {
	
	var dialog = new Dialog({content: 'DUMMY'});
	document.body.appendChild(dialog.getRootNode());

	templateEngine.renderDocument(document.body, templateConfig).then(function(result) {
		result.widgets['hamburger-demo'].setCallback(function (is) {
			dialog.setContent('Clicked hamburger : ' + (!!is ? 'ON' : 'OFF'));
			dialog.show();
		});
	});
});