Sha256: 65ebd9a00db83e3b01cf254034568ee447cdac2d8d953d426ab7762964e1492d
Contents?: true
Size: 1.27 KB
Versions: 8
Compression:
Stored size: 1.27 KB
Contents
// This is the client-side version of AppyApp::Extension import { BaseModel, modelDecorator, identifier } from './models/base'; @modelDecorator('extensions/appy-app'); class AppyAppExtension extends BaseModel { // must match the server-side identier in config/screens.rb // and lib/appy-app/extension.rb @identifier id = 'appy-app'; // This method is called when the extension is registered // Not all of Lanes will be available yet onRegistered() { } // This method is called after Lanes is completly loaded // and all extensions are registered onInitialized() { } // All extenensions have been given their data and Lanes has completed startup onAvailable() { } // Data that is provided by AppyApp::Extension#client_bootstrap_data // in lib/appy-app/extension.rb is passed to this method // the Base class will simply store the provided data as @data setBootstrapData() { return super.setBootstrapData(...arguments); } // Routes that should be established go here getRoutes() { return null; } // The root component that should be shown for this extension. // Will not be called if a different extension has included this one and it is the // "controlling" extension rootComponent(viewport) { return null; } }
Version data entries
8 entries across 4 versions & 1 rubygems