kalinin's public fiddles
-
Handlebars Helpers vs String Utilities
You can register a template helper, or implement your own string utility. Which works best depends on your goals.
-
Marionette.js. CollectionView. Automatic Rendering
After the initial render the collection view binds to the "add", "remove" and "reset" events of the collection that is specified.
-
Marionette.js. CollectionView. Build Trees in Marionette 3
As in tables, trees in Marionette 3 require us to combine `View` and `CollectionView` to build up the tree in a more explicit manner than the implicit version provided by Marionette 2.
-
Marionette.js. CollectionView's. childViewTriggers
A `childViewTriggers` hash or method permits proxying of child view events without manually setting bindings. The values of the hash should be a string of the event to trigger on the parent.
-
Marionette.js. View. Accessing a child view
To access the child view of a View - use the getChildView(region) method. This will return the view instance that is current being displayed at that region, or null
-
Marionette.js. View. Accessing a child view
To access the child view of a View - use the getChildView(region) method. This will return the view instance that is current being displayed at that region, or null
-
Marionette.js. View. Rendering a Template
The Marionette View implements a powerful render method which, given a template, will build your HTML from that template, mixing in model information and any extra template context.
-
9n7vkmfj
No-Library (pure JS), HTML, CSS, JavaScript
-
yqu4m1kx
No-Library (pure JS), HTML, CSS, JavaScript
-
e6yop9gn
No-Library (pure JS), HTML, CSS, JavaScript
-
4ows1yh7
No-Library (pure JS), HTML, CSS, JavaScript
-
f59tbrko
No-Library (pure JS), HTML, CSS, JavaScript
-
3ambo5Lr
No-Library (pure JS), HTML, CSS, JavaScript
-
Marionette.js. Events. Triggering Events on Child Events
Marionette 3 adds a new feature that allows selected events to fire events directly, allowing them to be propagated up the view hierarchy more easily and explicitly. The values of the hash should be a string of the event to trigger on the parent.
-
Marionette.js. Region. jQuery Animation
Shows how to configure a region to animate with jQuery
-
Marionette.js. View. Accessing UI elements
To get the handles to your UI elements, use the getUI(ui) method
-
Marionette.js. View. Referencing UI in events
The UI attribute is especially useful when setting handlers in the events and triggers objects - simply use the @ui. prefix
-
m1ty7ev2
No-Library (pure JS), HTML, CSS, JavaScript
-
L3ou6fwb
No-Library (pure JS), HTML, CSS, JavaScript
-
sy15xofn
No-Library (pure JS), HTML, CSS, JavaScript