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

    Custom arrow icon in QTree

    Framework
    3
    5
    850
    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.
    • rubs
      rubs last edited by

      Hi,

      Would it be possible to customize the arrow icon used to expand / collapse items in the Tree component? Currently it seems to be hardwired as play_arrow. I’d like to use e.g. chevron_right. Any solutions?

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

        @rubs you can do this.$q.iconSet.def.tree.icon = 'chevron_right', note: this is global. https://codepen.io/metalsadman/pen/ExxdBWw?editors=1010

        1 Reply Last reply Reply Quote 1
        • rubs
          rubs last edited by

          Thanks! I’ll try it. Looks much better than my CSS hack 😉

          1 Reply Last reply Reply Quote 1
          • V
            viswanathNK last edited by

            <q-tree
            icon='chevron_right
            /> just add like icon attribute

            rubs 1 Reply Last reply Reply Quote 1
            • rubs
              rubs @viswanathNK last edited by

              @viswanathNK Thanks, that’s exactly what I wanted!

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