Comments (6)
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.
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.
I'm looking for a similar feature. I would like a path selected by default upon render. Is this possible?
from finderjs.
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.
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.
I added an example here:
https://markmatyas.dev/finderjs/
from finderjs.
Related Issues (20)
- Expose event emitter
- Build gh-pages with examples
- Support keyboard arrows to navigate
- Responsive design support?
- Cant load JSON HOT 1
- Support drag and drop events.
- Providing pre-built files request HOT 2
- [feature request] add missing `destroy` functionality HOT 1
- [feature request] add (re)render tree method HOT 1
- Npm version is prior HOT 1
- Convert to ES6
- Keydown event not fired
- Example with deeper nested depth HOT 1
- item-selected and leaf-selected event handlers receive different parameters HOT 2
- Last column doesn't scroll into viewable window HOT 1
- using jquery loader
- stop event propagation, or stop navigation when no children HOT 2
- go-to doesn't work with async function HOT 1
- ARIA / screen reader support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finderjs.