PHP Classes

File: resources/js/filemanager.js

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Caelrik   resources/js/filemanager.js   Download  
File: resources/js/filemanager.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Caelrik
Build Web user interface from PHP components
Author: By
Last change:
Date: 8 days ago
Size: 653 bytes
 

 

Contents

Class file image Download
// jQuery UI attaches itself to the page's jQuery; it is only bundled in this chunk. import 'jquery-ui/dist/jquery-ui.js'; import 'jquery-ui/dist/themes/base/jquery-ui.min.css'; import $ from 'jquery'; import { buildElfinderConfig, elfinderAssets, loadAsset } from './filemanager-config.js'; export async function initFileManager(element, options) { const assets = elfinderAssets(options); await Promise.all(assets.styles.map((url) => loadAsset('link', url))); if (!$.fn.elfinder) { await loadAsset('script', assets.script); } element.replaceChildren(); return $(element).elfinder(buildElfinderConfig(options)).elfinder('instance'); }