function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ayush Kumar 31Ayush Kumar 31 

ui:inputNumber accepting "+"

ui:inputNumber accepting "+", can anybody help with the code in lightning?
Raj VakatiRaj Vakati
Sample code is here
    <aura:attribute name="myNumber" type="integer" default="10"/>
	<ui:inputNumber label="Enter a number: " value="{!v.myNumber}" updateOn="keyup"/> <br/>
    <ui:outputNumber value="{!v.myNumber +v.myNumber }"/>

If you want to do addition, do it in JavaScript controller and refer in the component.