No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [Sloved] QInput - Is that possible to keep the tail zero when input is a float value (input mask)

    Framework
    1
    2
    508
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Stanley last edited by Stanley

      <q-input v-model="numberFloat" type="number" :decimals="2" prefix="$" float-label="Number (initial float, 2 decimals)"/>
      export default {
        data () {
          return {
            numberFloat: 0.10
          }
        }
      }
      

      Currently, if input is 0.10, the output will be 0.1.
      Is that possible to keep the tail zero that means if decimals is 3, the output will be 0.100
      Thanks for your help!

      1 Reply Last reply Reply Quote 0
      • S
        Stanley last edited by

        This is in the future request and I think I have to wait.
        https://github.com/quasarframework/quasar/labels/proposal

        1 Reply Last reply Reply Quote 0
        • First post
          Last post