Topic: Set initial value to NumericInput

lugonet free asked 5 years ago


How to set initial value in NumericInput? v-model doesn't work.

Regards


lugonet free commented 5 years ago

Is there no answer? NumericInput doesn't accept initial values and Input component doesn't support decimal numbers, isn't it?


Mikołaj Smoleński staff answered 5 years ago


Hi there,

To set initial value to nueric input, please use the following code:

<mdb-numeric-input :max="10" :emptyValue="value" v-model="value" />

where value is set in Your data() object.

Best regards



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 5.2.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No