Module: Netzke::Core

Defined in:
lib/netzke/core.rb,
lib/netzke/core/panel.rb,
lib/netzke/core/state.rb,
lib/netzke/core/actions.rb,
lib/netzke/core/plugins.rb,
lib/netzke/core/session.rb,
lib/netzke/core/version.rb,
lib/netzke/core/services.rb,
lib/netzke/core/core_i18n.rb,
lib/netzke/core/embedding.rb,
lib/netzke/core/css_config.rb,
lib/netzke/core/client_code.rb,
lib/netzke/core/composition.rb,
lib/netzke/core/inheritance.rb,
lib/netzke/core/stylesheets.rb,
lib/netzke/core/action_config.rb,
lib/netzke/core/configuration.rb,
lib/netzke/core/dynamic_assets.rb,
lib/netzke/core/dsl_config_base.rb,
lib/netzke/core/component_config.rb,
lib/netzke/core/endpoint_response.rb,
lib/netzke/core/client_class_config.rb

Overview

This module implements high-level configuration for Netzke Core.

You can configure Netzke::Core like this:

Netzke::Core.setup do |config|
  config.ext_path = "/home/netzke/ext-5.0.0"
  config.icons_uri = "/images/famfamfam/icons"
  # ...
end

The following configuration options are available:

  • ext_path - absolute path to your Ext library

  • ext_uri - relative URI to the Ext library (defaults to “/extjs”)

  • icons_uri - relative URI to the icons (defaults to “/images/icons”)

  • default_routes - whether to include default Netzke routes (defaults to true)

  • ext_javascripts - extra JS dependencies to be included in the app

  • ext_stylesheets - extra CSS dependencies to be included in the app

  • js_direct_max_retries - amount of retries that the direct remoting provider will attempt in case of failure

(defaults to 0)

  • client_notification_delay - amount of time (in ms) feedback delay is being shown (defaults to 2000)

Defined Under Namespace

Modules: Actions, ClientCode, Composition, Configuration, CoreI18n, DynamicAssets, Embedding, Inheritance, Plugins, Services, Session, State, Stylesheets Classes: ActionConfig, ClientClassConfig, ComponentConfig, CssConfig, DslConfigBase, EndpointResponse, JsonLiteral, Panel

Constant Summary collapse

VERSION =
"6.5.0.0"
@@ext_javascripts =
[]
@@ext_stylesheets =
[]
@@external_ext_css =
[]
@@icons_uri =
"/images/icons"
@@ext_uri =
"/extjs"
@@js_direct_max_retries =
0
@@client_notification_delay =
2000
@@default_routes =
true

Class Method Summary collapse

Class Method Details

.reset_components_in_sessionObject



71
72
73
# File 'lib/netzke/core.rb', line 71

def self.reset_components_in_session
  Netzke::Base.session[:netzke_components].try(:clear)
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Netzke::Core)

    the object that the method was called on



67
68
69
# File 'lib/netzke/core.rb', line 67

def self.setup
  yield self
end