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

    Folder picker

    Framework
    2
    2
    469
    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.
    • T
      tdumitr last edited by

      Hi,

      I noticed that there is a new File picker control, thank you very much for it. But I could not find a folder picker. Is there such a control? If yes, which one is it? If not, how can I create one of my own?

      My need is related to an Electron app, but I can see this being used in other browser based apps as well.

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

        A convienient although inelegant way to achieve your objective is to select a file in the desired folder and derive folder from the path element returned:
        <!-- select folder by getting file and derive folder -->
        <div class=“q-pa-sm”>
        <q-file v-model=“mypathobj”
        label=“Select a file in the desired Directory”
        filled
        @input=“gotInput”
        style=“max-width: 400px”
        />
        </div>

        gotInput: function() {
          this.mypath = this.mypathobj.path.replace(this.mypathobj.name, '')
          console.log("Folder Path: ", this.mypath)
        },
        1 Reply Last reply Reply Quote 0
        • First post
          Last post