You need to sign in to do that
Don't have an account?
Antoine 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">
</aura:iteration>
The goal is to calculate the last outputNumber when the inputNumber change.
Thanks for your help.
Antoine
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}"/><ui:outputNumber value="{!article.stock}"/>
</aura:iteration>
The goal is to calculate the last outputNumber when the inputNumber change.
Thanks for your help.
Antoine