Number Picker

photo of number picker element in Tizen

To add a number picker component to the application, use the following code:

HTML code:

<div class="ui-page" id="number-picker-page" data-enable-page-scroll="false">
	<header class="ui-header ui-header-big">
		<h2 class="ui-title">Set number</h2>
	<div class="ui-content">
		<div class="ui-number-picker"></div>
	<script src="number-picker.js"></script>

JS code:

var page = document.getElementById("number-picker-page"),
	element = page.querySelector(".ui-number-picker"),
	widget = null;

function init() {
    widget = tau.widget.NumberPicker(element);

function onPageHide() {

page.addEventListener("pagebeforeshow", init);
page.addEventListener("pagehide", onPageHide);