How to detect MDBootstrap version via Javascript


Topic: How to detect MDBootstrap version via Javascript

fmaeseele pro asked a year ago

MDB lacks a way to get the version at runtime. Most of libraries expose a way to get the lib version, usually with a variable. As examples:

// Kendo UI Core Version
console.log("KendoUiCore Components Library - v" + kendo.version);
// Microsoft SignalR Version
console.log("@aspnet/signalR - v" + signalR.VERSION);
console.log("@aspnet/signalR-protocol-msgpack - v" + signalR.protocols.msgpack.VERSION);

This is a very useful information when debugging a web site.


Hi,

We don't have any const with MDB version so there is no possibility to get this info via JS. In free version you can get MDB from npm, there is version with package.json inside.

Best,


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.10.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No