# Wijmo_Angular_Input.Wjinputnumber

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								WjInputNumber Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>AngularJS directive for the <a href="wijmo_input.inputnumber.html">InputNumber</a> control.</p>
								</div>
								<p>Use the <b>wj-input-number</b> directive to add <b>InputNumber</b> controls to your
									AngularJS applications.
									Note that directive and parameter names must be formatted as lower-case with dashes
								instead of camel-case. For example:</p>
								<pre>&lt;p&gt;Here is an InputNumber control:&lt;/p&gt;
&lt;wj-input-number
  value="theNumber"
  min="0"
  max="10"
  format="n0"
  placeholder="number between zero and ten"&gt;
&lt;/wj-input-number&gt;</pre>
								<p>The example below creates several <b>InputNumber</b> controls and shows the effect
								of using different formats, ranges, and step values.</p>
								<p><a href="https://jsfiddle.net/Wijmo5/u7HpD/" target="_blank">Example</a></p>
								<p>The <b>wj-input-number</b> directive supports the following attributes:</p>
								<dl class="dl-horizontal">
									<dt>ng-model</dt>      <dd><code>@</code> Binds the control's <b>value</b> property using the ng-model Angular
										directive. Binding the property using the ng-model directive provides standard benefits
										like validation, adding the control's state to the form instance, and so on. To redefine
										properties on a control that is bound by the ng-model directive, use the wj-model-property
									attribute.</dd>
									<dt>wj-model-property</dt>  <dd><code>@</code> Specifies a control property that is bound to a scope using the <b>ng-model</b> directive.</dd>
									<dt>control</dt>       <dd><code>=</code> A reference to the <a href="wijmo_input.inputnumber.html">InputNumber</a> control created by this directive.</dd>
									<dt>format</dt>        <dd><code>@</code> The format used to display the number (see <a href="wijmo.globalize.html">Globalize</a>).</dd>
									<dt>input-type</dt>    <dd><code>@</code> The "type" attribute of the HTML input element hosted by the control.</dd>
									<dt>initialized</dt>   <dd><code>&amp;</code> This event occurs after the binding has finished initializing the control with attribute values.</dd>
									<dt>is-initialized</dt><dd><code>=</code> A value indicating whether the binding has finished initializing the control with attribute values. </dd>
									<dt>max</dt>           <dd><code>@</code> The largest valid number.</dd>
									<dt>min</dt>           <dd><code>@</code> The smallest valid number.</dd>
									<dt>place-holder</dt>  <dd><code>@</code> The string to show as a hint when the control is empty.</dd>
									<dt>is-required</dt>   <dd><code>@</code> A value indicating whether to prevent null values.</dd>
									<dt>show-spinner</dt>  <dd><code>@</code> A value indicating whether to display spinner buttons to change the value by <b>step</b> units.</dd>
									<dt>step</dt>          <dd><code>@</code> The amount to add or subtract to the value when the user clicks the spinner buttons.</dd>
									<dt>text</dt>          <dd><code>=</code> The text to show in the control.</dd>
									<dt>value</dt>         <dd><code>=</code> The number being edited.</dd>
									<dt>got-focus</dt>     <dd><code>&amp;</code> The <a href="wijmo_input.inputnumber.html#gotfocus">InputNumber.gotFocus</a> event handler.</dd>
									<dt>lost-focus</dt>    <dd><code>&amp;</code> The <a href="wijmo_input.inputnumber.html#lostfocus">InputNumber.lostFocus</a> event handler.</dd>
									<dt>text-changed</dt>  <dd><code>&amp;</code> The <a href="wijmo_input.inputnumber.html#textchanged">InputNumber.textChanged</a> event handler.</dd>
									<dt>value-changed</dt> <dd><code>&amp;</code> The <a href="wijmo_input.inputnumber.html#valuechanged">InputNumber.valueChanged</a> event handler.</dd>
								</dl>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="tsd-signature-type">WjDirective</span>
									<ul class="tsd-hierarchy">
										<li>
											<span class="target">WjInputNumber</span>
										</li>
									</ul>
								</li>
							</ul>
						</section>
					</div>