Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Dynamic DragSource #13

Closed
ely-alamillo opened this issue Jul 11, 2018 · 2 comments
Closed

[Question] Dynamic DragSource #13

ely-alamillo opened this issue Jul 11, 2018 · 2 comments

Comments

@ely-alamillo
Copy link

The docs say you can have a dynamic dragSource if you pass null as the type but don't say what to do after that. Would you mind pointing me in the right direction or providing an example to get this working ?

@cormacrelf
Copy link
Owner

cormacrelf commented Jul 12, 2018

Which docs page mentions them but doesn’t link to anything? I have a lot of links but might have missed one. I think you’re looking at https://cormacrelf.github.io/angular-skyhook/injectables/SkyhookDndService.html#dragSource — there might be a compodoc issue preventing the rest of the parameter documentation being rendered, because I’m pretty sure there’s a link at the end of that sentence.

You’re looking for this

https://cormacrelf.github.io/angular-skyhook/interfaces/DragSource.html#setType

Or

https://cormacrelf.github.io/angular-skyhook/directives/DragSourceDirective.html#dragSourceType

There are, of course, corollaries for DropTarget, but they are pluralised because they accept arrays as well as plain strings or symbols.

@cormacrelf
Copy link
Owner

(Also, lots of the example code uses this. Check out ‘nested sources’.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants