<?php require_once '../include/header.php'; require_once '../lib/Kendo/Autoload.php'; $numeric = new \Kendo\UI\NumericTextBox('numerictextbox'); $numeric->change('onChange')->spin('onSpin'); ?> <div class="demo-section"> <?php echo $numeric->render(); ?> </div> <div class="demo-section"> <h3 class="title">Console log</h3> <div class="console"></div> </div> <script> function onChange() { kendoConsole.log("Change :: " + this.value()); } function onSpin() { kendoConsole.log("Spin :: " + this.value()); } </script> <style scoped> .demo-section { width: 500px; text-align: center;
<?php require_once '../include/header.php'; require_once '../lib/Kendo/Autoload.php'; $numeric = new \Kendo\UI\NumericTextBox('numerictextbox'); ?> <div class="demo-section k-rtl"> <h2>Set Value</h2> <?php echo $numeric->render(); ?> </div> <style scoped> .demo-section { width: 250px; margin: 35px auto 50px; padding: 30px; } .demo-section h2 { text-transform: uppercase; font-size: 1.2em; margin-bottom: 10px; } </style> <?php require_once '../include/footer.php';
<?php require_once '../include/header.php'; require_once '../lib/Kendo/Autoload.php'; ?> <div class="demo-section"> <h2>Set Value</h2> <?php $numeric = new \Kendo\UI\NumericTextBox('numerictextbox'); $numeric->attr('style', 'width: 250px'); $numeric->attr('accesskey', 'w'); echo $numeric->render(); ?> </div> <ul class="keyboard-legend"> <li> <span class="button-preview"> <span class="key-button leftAlign wider"><a target="_blank" href="http://en.wikipedia.org/wiki/Access_key">Access key</a></span> + <span class="key-button">w</span> </span> <span class="button-descr"> focuses the widget </span> </li> </ul> <ul class="keyboard-legend"> <li> <span class="button-preview"> <span class="key-button wide leftAlign">up arrow</span> </span>
<?php require_once '../include/header.php'; require_once '../lib/Kendo/Autoload.php'; $numeric = new \Kendo\UI\NumericTextBox('numeric'); $numeric->value(17)->min(0)->max(100)->step(1); $currency = new \Kendo\UI\NumericTextBox('currency'); $currency->format('c')->value(30)->min(0)->max(100)->decimals(3); $percentage = new \Kendo\UI\NumericTextBox('percentage'); $percentage->format('p0')->value(0.05)->min(0)->max(0.1)->step(0.01); $custom = new \Kendo\UI\NumericTextBox('custom'); $custom->format('#.00 kg')->value(2); ?> <div id="add-product"> <div> <?php echo $currency->render(); ?> </div> <div style="margin-top: 7px;"> <?php echo $percentage->render(); ?> </div> <div style="margin-top: 7px;"> <?php echo $custom->render(); ?> </div> <div style="margin-top: 7px;"> <?php