Package s3 :: Module s3organizer :: Class S3OrganizerWidget
[frames] | no frames]

Class S3OrganizerWidget

source code

object --+
         |
        S3OrganizerWidget

Helper to configure and render the organizer UI widget

Instance Methods
 
__init__(self, resources)
Constructor
source code
 
html(self, widget_id=None, formkey=None)
Render the organizer container and instantiate the UI widget
source code

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

Static Methods
 
inject_script(widget_id, options)
Inject the necessary JavaScript
source code
Properties

Inherited from object: __class__

Method Details

__init__(self, resources)
(Constructor)

source code 

Constructor

@param resources: a list of resource specs, format:
                  [{"ajax_url": URL to retrieve events
                    "start": start date field (selector)
                    "end": end date field (selector)
                    },
                    ...
                   ]

Overrides: object.__init__

html(self, widget_id=None, formkey=None)

source code 

Render the organizer container and instantiate the UI widget

Parameters:
  • widget_id - the container's DOM ID

inject_script(widget_id, options)
Static Method

source code 

Inject the necessary JavaScript

Parameters:
  • widget_id - the container's DOM ID
  • options - widget options (JSON-serializable dict)