Top
craft-uikit
craft-widget-

Bootstrap

Bootstrap

Source:

The application entry point.

Argument for Craft.Core.Bootstrap.boot must have your entry function named as didBootApplication.
The function will be called just after the initialization process of Craft-UIKit itself.

You can also set your optional value or function in the argument object.
It can be retrieved via Craft.Core.Context.getApp().

Example

Craft.Core.Bootstrap.boot({
    router : Craft.Core.HashRouter,
    didBootApplication : function(options){
        let widget = new MyWidget();
        widget.loadView();
        document.getElementById('CraftRoot').appendChild(widget.view);
    },
    token : some_token
});

const token = Craft.Core.Context.getApp().token;

Methods

(static) boot(app) → {LaunchEnv}

Source:

Entry point of Craft-UIKit application.

Parameters:
Name Type Description
app Object

your application bootloader with didBootApplication

Properties
Name Type Description
didBootApplication function

your bootstrap

didBootApplication Craft.Core.Router

your bootstrap

Returns:
  • info about launch environment
Type
LaunchEnv