Mixin¶
-
class
partitialajax.mixin.
CreatePartitialAjaxMixin
¶
-
class
partitialajax.mixin.
DeletePartitialAjaxMixin
¶
-
class
partitialajax.mixin.
DetailPartitialAjaxMixin
¶
-
class
partitialajax.mixin.
ListPartitialAjaxMixin
¶
-
class
partitialajax.mixin.
PartitialAjaxMixin
¶ Add this Mixin to your View to activate the useage of PartitialAjax
-
get_partitial
(origin, context)¶ Collect Partitial Contents from template or remote url
Parameters: - origin – tuple or string; if tuple: the first value is the path to template or remote the second is the keyword “template”, “remote”
- context – context used for rendering (remote paths also renderd with this context)
Returns:
-
get_partitial_context
(**kwargs)¶ Modifys content for ajax Partitials Detailed: It loads all defined files from partitials_list and render this templates
Parameters: context – context dict Returns: context dict
-
get_partitial_list
(*args, **kwargs)¶ Returns a dict with keys as selectors and values as partitial file paths :return: dict :Example: {“#foo”: “myapp/partitials/foo.html”}
-
partitial_list
= {}¶ Define here all partitial html files used in the template_name File Write as follows: {“#foobar”: “myapp/partitial/foo.html”}
-
-
class
partitialajax.mixin.
UpdatePartitialAjaxMixin
¶
-
class
partitialajax.mixin.
PartitialAjaxMixin
Add this Mixin to your View to activate the useage of PartitialAjax