j-FileBrowser
Komponenta otevře souborový prohlížeč a vrátí vybrané soubory.
Metody:
component.open(opt)- otevřít souborový prohlížečopt.multiple {Boolean}umožňuje více souborů (podle předvolby:false)opt.accept {String}umožňuje pouze specifikovaný typ obsahu (předvolený:undefined)opt.callback {Function(files, e)}a callback
Použijte ji s <ui-component name="filebrowser">Pokud je součástka ještě nezačleněna, jComponent Stáhnout ji na první použití z adresy DEF.fallback a) The Componentator CDN dle předvolby. autor: Peter Širka. zdroj: Componentator Výrobce je autorizován, MIT licence.
<ui-component name="filebrowser"></ui-component>
<a href="javascript:fopen()">OPEN FILE</a>
<script>
function fopen() {
var opt = {};
opt.multiple = true;
// opt.accept = 'image/*';
opt.callback = function(files, e) {
console.log(files, e);
};
SETTER('filebrowser/show', opt);
}
</script>