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
Antoine LELEU 10Antoine LELEU 10 

lightning component : <ui:outputNumber> aggregate values dynamically

Hi,

I would like aggregate dynamically variable in output value like this :

<aura:iteration items="{!v.Stocks}" var="article" indexVar="index">
<ui:inputNumber class="slds-input price-inputCurrency"  value="{!article.inventoryPricingArticle.Bottle_Number__c}"/>
<ui:outputNumber value="{!article.stock}"/>
           <ui:outputNumber value="{!article.stock - article.inventoryPricingArticle.Bottle_Number__c}"/>
</aura:iteration> 

The goal is to calculate the last outputNumber when the inputNumber change.

Thanks for your help.
Antoine