InputNumber does not display currency format

UI Components for Vue
Post Reply
anurat
Posts: 3
Joined: 11 Dec 2020, 02:29

03 Jan 2021, 18:17

I have an InputNumber which calculates value from other fields and pass it on :value
however it displays as plain number instead of currency format e.g.

700000 instead of B700,000

Code: Select all

      InputNumber(readonly="readonly"
        :value="(income.pivot.per_month * 12) + Number(income.pivot.per_year)"
        :minFractionDigits="0"
        inputStyle="text-align: right;"
        mode="currency"
        currency="THB"
        locale="th-TH")
How do I keep the currency format?

Also is it possible to right align the value inside InputNumber, I tried inputStyle="text-align: right;"
but doesn't work.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests