PHP Classes

File: resources/js/bootstrap-global.js

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Caelrik   resources/js/bootstrap-global.js   Download  
File: resources/js/bootstrap-global.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: 321 bytes
 

 

Contents

Class file image Download
// Bootstrap's JS is a peer dependency (the page loads bootstrap.bundle.js), like jQuery. export function bootstrapComponent(name) { const component = window.bootstrap?.[name]; if (!component) { console.warn(`Caelrik: load Bootstrap's JS (bootstrap.bundle.js) to use ${name}.`); } return component ?? null; }