kalinin's public fiddles
-
fq4kg518
No-Library (pure JS), HTML, CSS, JavaScript
-
Backbone.js collections can listen to its models' changes
I wanted to know if a Backbone.js collection can listen to its models' events. Yes. They can
-
Marionette.js. Events. Listening to Events
Marionette's event triggers work just like regular Backbone events - you can use `view.on` and `view.listenTo` to act on events.
-
Marionette.js. Events. View `triggerMethod`
The `triggerMethod` method fires the named event on the view - any listeners will then be triggered on the event. If there are no listeners, this call will still succeed. All arguments after the first argument will be passed to all event handlers.
-
Marionette.js. Events. View `triggerMethod`
The `triggerMethod` method fires the named event on the view - any listeners will then be triggered on the event. If there are no listeners, this call will still succeed. All arguments after the first argument will be passed to all event handlers.
-
Marionette.js. Events. Attaching Functions
The `childViewEvents` attribute can also attach functions directly to be event handlers
-
Marionette.js. Events. Attaching Functions
The `childViewEvents` attribute can also attach functions directly to be event handlers
-
Marionette.js. Events. View events and triggers
Views can automatically bind DOM events to methods and View events with `events` and `triggers` respectively
-
Marionette.js. Events. Attaching Functions
The `childViewEvents` attribute can also attach functions directly to be event handlers
-
Marionette.js. Events. Attaching Functions
The `childViewEvents` attribute can also attach functions directly to be event handlers
-
Marionette.js. Events. Attaching Functions
The `childViewEvents` attribute can also attach functions directly to be event handlers
-
Marionette.js. Region. jQuery Animation
Shows how to configure a region to animate with jQuery
-
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. 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.
-
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. Showing a view inside a region
To show a view inside a region, simply call showChildView(region, view). This will handle rendering the view's HTML and attaching it to the DOM for you
-
Marionette.js. View. Laying out Views - Regions
The Marionette.View class lets us manage a hierarchy of views using regions. Regions are a hook point that lets us show views inside views, manage the show/hide lifecycles, and act on events inside the children.
-
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.
-
pu8xq4n1
No-Library (pure JS), HTML, CSS, JavaScript
-
950u3f7c
No-Library (pure JS), HTML, CSS, JavaScript