3

I have a inputNumber with a percent. If I fill with a number its ok, but I fill with 0, the field show only the icon %. I want to show or 0% or nothing.

<ui:inputNumber class="slds-input columns" value="{!v.familysObj.contingenciaPorcent}" change="{!c.changeValue}" format="##%"/>

Thanks

1 Answer 1

3

Try adding the format as #0%, this works similar to apex:param in visualforce:

<ui:inputNumber class="slds-input columns" value="{!v.familysObj.contingenciaPorcent}" 
    change="{!c.changeValue}" format="#0%"/>
1
  • Thanks, it works correctly
    – Rodolfo
    Commented Mar 18, 2019 at 15:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .