marionettejs's public fiddles
-
Marionette.js. CollectionView's. childViewEvents
A `childViewEvents` hash or method permits handling of child view events without manually setting bindings.
-
Marionette.js. CollectionView's. childViewEventPrefix
You can customize the event prefix for events that are forwarded through the collection view.
-
Marionette.js. CollectionView's. childViewOptions
You can also specify the `childViewOptions` as a function, if you need to calculate the values to return at runtime.
-
Marionette.js. CollectionView's. childViewOptions
There may be scenarios where you need to pass data from your parent collection view in to each of the childView instances.
-
Marionette.js. CollectionView's. childView
Specify a childView in your collection view definition. This must be a Backbone view class definition, not an instance. It can be any Backbone.View or be derived from Marionette.View.
-
adhv48ky
No-Library (pure JS), HTML, CSS, JavaScript
-
8rxdgy1g
No-Library (pure JS), HTML, CSS, JavaScript
-
Marionette.js. View. Advanced
If the serialization is a collection, the results are passed in as an items array.
-
Marionette.js. View. Advanced
This method is used to convert a View's model or collection into a usable form for a template.
-
Marionette.js. View. Listening Model and Collection events
If your view has a model and collection attached, it will listen for events on both
-
n80cL9ae
No-Library (pure JS), HTML, CSS, JavaScript
-
ze8po0x5
No-Library (pure JS), HTML, CSS, JavaScript
-
Marionette.js. View. Collection Events
Collection events work exactly the same way as modelEvents with their own collectionEvents key:
-
Marionette.js. View. Model Events. Function callback
You can bind a function callback directly in the modelEvents attribute
-
kgus5273
No-Library (pure JS), HTML, CSS, JavaScript
-
Marionette.js. View. Model Events
The modelEvents attribute passes through all the arguments that are passed to model.trigger('event', arguments). The modelEvents attribute can also take a function returning an object.
-
psnokbjf
No-Library (pure JS), HTML, CSS, JavaScript
-
Marionette.js. View triggers
The view triggers attribute binds DOM events to Marionette View events that can be responded to at the view or parent level. For more information on events, see the events documentation. This section will just cover how to bind these events to views.
-
Marionette.js. View events. Passing a Function
The events attribute can also directly bind functions
-
064dygw2
No-Library (pure JS), HTML, CSS, JavaScript