Package s3 :: Module s3navigation :: Class S3ScriptItem
[frames] | no frames]

Class S3ScriptItem

source code

      object --+    
               |    
S3NavigationItem --+
                   |
                  S3ScriptItem

Simple Navigation Item just for injecting scripts into HTML forms

Instance Methods
 
__init__(self, script=None, **attributes)
Constructor
source code
 
xml(self)
Injects associated script into jquery_ready.
source code

Inherited from S3NavigationItem: __add__, __call__, __contains__, __getitem__, __len__, __nonzero__, __repr__, __setitem__, accessible_url, append, branch, check_active, check_enabled, check_hook, check_permission, check_selected, clone, deselect_all, disable, enable, extend, findall, following, get, get_all, get_first, get_last, get_next, get_prev, get_root, index, insert, is_first, is_last, match, path, pop, pos, preceding, render, render_components, select, set_layout, set_parent, url

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
inline(item)
Present to ensure that script injected even in inline forms
source code

Inherited from S3NavigationItem: get_layout

Properties

Inherited from object: __class__

Method Details

__init__(self, script=None, **attributes)
(Constructor)

source code 

Constructor

Parameters:
  • script - script to inject into jquery_ready when rendered
Overrides: object.__init__

xml(self)

source code 

Injects associated script into jquery_ready.

Overrides: S3NavigationItem.xml

inline(item)
Static Method

source code 

Present to ensure that script injected even in inline forms