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

    [Solved] [V1] QInput - question about property v-bind

    Framework
    4
    6
    1000
    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

      After run the quasar demo, I found QInput has a great feature called v-bind. Please see below link.
      https://github.com/quasarframework/quasar/blob/dev/ui/dev/components/form/input.vue
      But it never states in the online documentation.

      So can I use this feature or is there anything to pay attention, thanks!

      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by

        It’s vue data binding, https://vuejs.org/v2/guide/class-and-style.html, you see it a lot in quasar too for binding props using the shorthand colon :propName="propValue".

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

          @metalsadman Thanks for your link!

          1 Reply Last reply Reply Quote 0
          • Q
            QuaSam last edited by

            I am having trouble finding examples of binding to sub-component with v-bind, and searching for :propName yields nothing. Any pointers would be appreciated. Simply want to pass two integers one-way to a sub-component and this has proven to be difficult.

            1 Reply Last reply Reply Quote 0
            • s.molinari
              s.molinari last edited by s.molinari

              What sub-component? If you have two integers and a single prop, you’d need to use an object or an array. Can you put together a pen or fiddle to at least partially show what you are attempting?

              Oh, and it’s better to start a new thread with your inquiry than to piggyback on someone else’s issue, which was resolved. Thanks!

              Scott

              Q 1 Reply Last reply Reply Quote 0
              • Q
                QuaSam @s.molinari last edited by

                @s-molinari Scott - thanks for your reply. I’ll mull over and get back in the coming days. Best wishes with m8a.

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