Sha256: 18524f84265b6a9d42e598ac8eb1135d9d5ecfd2442651bd29e1c85d39ec5803

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

# This is the client-side version of AppyApp::Extension
class AppyApp.Extension extends Lanes.Extensions.Base

    # must match the server-side identier in config/screens.rb and lib/appy-app/extension.rb
    identifier: "appy-app"

    # This method is called when the extension is registered
    # Not all of Lanes will be available yet
    onRegistered: Lanes.emptyFn

    # This method is called after Lanes is completly loaded
    # and all extensions are registered
    onInitialized: Lanes.emptyFn

    # 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: -> super

    # All extenensions have been given their data and Lanes has completed startup
    onAvailable: Lanes.emptyFn

    # Routes that should be established go here
    getRoutes: -> 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) -> null

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lanes-0.7.0 spec/command-reference-files/initial/client/appy-app/Extension.coffee