来自AngularJs指令的Dropzone.js调用函数 [英] Call function from AngularJs Directive for Dropzone.js

查看:103
本文介绍了来自AngularJs指令的Dropzone.js调用函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将这个指令用于dropzone.js脚本: GitHub

I've this directive for the dropzone.js script: GitHub

这很好用,但是我想用一个按钮调用processQueue()函数。
但是我找不到如何调用此函数!

This works fine but I want call the function processQueue() with a button. But I can't find how I can call this function!

推荐答案

我自己找到了答案,juste在指令末尾添加以下行:

I found the answer by myself, juste add this line in the end of the directive :

scope.dropzone = dropzone;

接下来,您可以调用类似的函数:

And next you can call the function like that :

$scope.dropzone.processQueue();

这篇关于来自AngularJs指令的Dropzone.js调用函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆