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

How to add a javascript library in snappy #307

Closed
Siopy opened this issue Mar 28, 2022 · 1 comment
Closed

How to add a javascript library in snappy #307

Siopy opened this issue Mar 28, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@Siopy
Copy link

Siopy commented Mar 28, 2022

Hi,

I have a project to add a filepicker linked to Nextcloud.

https://www.npmjs.com/package/nextcloud-webdav-filepicker

I can't add the library in my code. I installed the library which is available in /node_modules/nextcloud-webdav-filepicker/js/filePickerWrapper.js but I don't know how to make it available in PopupCompose.html (\snappymail-master\snappymail\v\0.0.0\appapplicationtemplates\Views\User\PopupsCompose.html)

Do you have any ideas?

Thanks

@the-djmaze
Copy link
Owner

Take a look at https://github.com/the-djmaze/snappymail/blob/master/plugins/login-oauth2/LoginOAuth2.js
You see there's a hook, when a view is created, so that you can inject your own features.
In this case you want the PopupsCompose.

Then you can load anything you want into it.

@Siopy Siopy closed this as completed Mar 31, 2022
@the-djmaze the-djmaze added the documentation Improvements or additions to documentation label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants