Giter Club home page Giter Club logo

Comments (6)

mynameistechno avatar mynameistechno commented on July 19, 2024

Sorry for the delay in response, did you ever sort something out? I'm low on free time, I'll try to take a look in the near future.

from finderjs.

devforfu avatar devforfu commented on July 19, 2024

Sure, no problem =)

No, actually, I've decided to put it off for a some time. Or probably to try something like Dragula to write a custom control.

Actually, the reason why I need this thing is an emulation of real file system behaviour where it is possible not only to navigate previously opened folder clicking "Back" button, but also to drag and drop folders/files from one subtree to another. Not sure if it's easy to introduce into FinderJS.

from finderjs.

doprdele avatar doprdele commented on July 19, 2024

I'm looking for a similar feature. I would like a path selected by default upon render. Is this possible?

from finderjs.

mynameistechno avatar mynameistechno commented on July 19, 2024

I'm looking for a similar feature. I would like a path selected by default upon render. Is this possible?

No 😢 but I can see how that would be extremely useful. I might be able to take a look in a week or two, but feel free to take a look.

This would be easier if written in React or something. As-is we probably need to add the item's value/label to the node's data-attribute to make it easier to find/navigate to it later. I'll think about it.

from finderjs.

mynameistechno avatar mynameistechno commented on July 19, 2024

This can now be done via a defaultPath config option (navigates on load):

finder(container, data, {
  defaultPath: 'path/to/item'
});

or programmatically on demand:

var emitter = finder(container, data);
emitter.emit('go-to', 'path/to/item');

from finderjs.

mynameistechno avatar mynameistechno commented on July 19, 2024

I added an example here:

https://markmatyas.dev/finderjs/

from finderjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.