krajee bootstrap-fileinput是否已完成或加载事件?

时间:2019-04-22 15:07:04

标签: javascript bootstrap-file-input

嗨,我在绑定事件时遇到了问题,请单击插件缩略图上的自定义按钮,我想我绑定事件还为时过早。

这是代码。

layoutTemplates: {
   actions: '<div class="file-actions">\n' +
   '    <div class="file-footer-buttons">\n' +
   '        <button type="button" class="btn btn-sm btn-kv btn-default btn-outline-secondary btn-mdl-meta" title="Edit meta info">' +
   '           <i class="glyphicon glyphicon-file"></i>' +
   '        </button>' +
   '        {upload} {download} {delete} {zoom} {other}' +
   '    </div>\n' +
   '    {drag}\n' +
   '    <div class="file-upload-indicator" title="{indicatorTitle}">{indicator}</div>\n' +
   '    <div class="clearfix"></div>\n' +
   '</div>'
},

文件输入初始化后的点击事件。

$('#file').fileinput({...});
$('.btn-mdl-meta').on('click',function(e){ console.log('Show modal'); });

我需要的是使用此按钮触发模式。

非常感谢您的帮助。

0 个答案:

没有答案
相关问题