djangofloor.signals.bootstrap3
¶
Python shortcuts for JS Bootstrap3 signals¶
This module only defines shortcuts to existing JS signals that are linked to Boostrap3.
-
djangofloor.signals.bootstrap3.
modal_show
(window_info, html_content, width=None, to=WINDOW)[source]¶
-
djangofloor.signals.bootstrap3.
notify
(window_info, content, title=None, timeout=5000, style='notification', level='info', to=WINDOW)[source]¶ Display a notification to the selected users. Can be a banner (on the top of the page), a Growl-like notification (bubble on the top-right), a modal or a system notification.
Parameters: - window_info – a
djangofloor.wsgi.window_info.WindowInfo
object - content – content of the notification
- title – title of the notification
- timeout – number of milliseconds before hiding the message
- style – one of djangofloor.signals.bootstrap3.{NOTIFICATION,BANNER,MODAL,SYSTEM}
- level – one of djangofloor.signals.bootstrap3.{INFO,DEFAULT,SUCCESS,DANGER,WARNING}
- to – list of signal clients
- window_info – a
-
djangofloor.signals.bootstrap3.
render_to_modal
(window_info, template_name, context, width=None, to=WINDOW, using=None)[source]¶ render a template and display the result in a modal window on every selected clients
Parameters: - window_info – a
djangofloor.wsgi.window_info.WindowInfo
object - template_name – name of the Django template
- context – template context (a dict)
- width – width of the modal, in pixels
- to – list of signal clients
- using – the using parameter of Django templates
- window_info – a