Sha256: f0d873a66915fa2e4c536714d7e425455dba0796b17ae06d63f5219e09632798

Contents?: true

Size: 1.36 KB

Versions: 8

Compression:

Stored size: 1.36 KB

Contents

##=require ./screens/ready-set-go

# 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
    setBootstrapData: Lanes.emptyFn

    # 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) ->
        # render AppyApp.Screens.ReadySetGo by default.  If this is changed the
        # ##=require ./screens/ready-set-go at the top of file must also be updated
        # to ensure that the correct screen's definition will be available at boot
        AppyApp.Screens.ReadySetGo

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lanes-0.6.1 spec/command-reference-files/screen/client/appy-app/Extension.coffee
lanes-0.6.0 spec/command-reference-files/screen/client/appy-app/Extension.coffee
lanes-0.5.6 spec/command-reference-files/screen/client/appy-app/Extension.coffee
lanes-0.5.5 spec/command-reference-files/screen/client/appy-app/Extension.coffee
lanes-0.5.0 spec/command-reference-files/screen/client/appy-app/Extension.coffee
lanes-0.4.0 spec/command-reference-files/screen/client/appy-app/Extension.coffee
lanes-0.3.0 spec/command-reference-files/screen/client/appy-app/Extension.coffee
lanes-0.1.9.5 spec/command-reference-files/screen/client/appy-app/Extension.coffee