Number-Input

Example

Code

<div class="row">
  <div class="col-sm-6">
    <fine-number-input id='myNumberInput1' width='300px'>
    </fine-number-input>
  </div>
  
  <label class="control-label col-sm-1" for="input">Theme:</label>
  <div class="col-sm-4">
    <select class="form-control" onchange="changeTheme(this);">
      <option>default</option>
      <option>flat</option>
      <option>dark</option>
    </select>
  </div>
</div>

<script type="text/javascript">
  var info = {
    element: 'number-input',
    example: 'themes'
  };

  function changeTheme(select) {
    var el = document.getElementById('myNumberInput1');
    var theme = select.selectedOptions[0].textContent;
    el.set('theme', theme);
  }    
</script>