Sha256: ad13bfd2fb7b94cb68191cda3ac6f48199457222e399116b33186224f96dd9e1

Contents?: true

Size: 1.11 KB

Versions: 8

Compression:

Stored size: 1.11 KB

Contents

# This is the client-side version of <%= namespace %>::Extension
class <%= namespace %>.Extension extends Lanes.Extensions.Base

    # must match the server-side identier in config/screens.rb and lib/<%= identifier %>/extension.rb
    identifier: "<%= identifier %>"

    # 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 <%= namespace %>::Extension#client_bootstrap_data
    # in lib/<%= identifier %>/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) -> null

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lanes-0.6.1 templates/client/Extension.coffee
lanes-0.6.0 templates/client/Extension.coffee
lanes-0.5.6 templates/client/Extension.coffee
lanes-0.5.5 templates/client/Extension.coffee
lanes-0.5.0 templates/client/Extension.coffee
lanes-0.4.0 templates/client/Extension.coffee
lanes-0.3.0 templates/client/Extension.coffee
lanes-0.1.9.5 templates/client/Extension.coffee