marionettejs's public fiddles
-
Marionette.js. Nesting Behaviors
In addition to extending a View with Behavior, a Behavior can itself use other Behaviors. The syntax is identical to that used for a View
-
obbucwt2
No-Library (pure JS), HTML, CSS, JavaScript
-
Marionette.js. Behavior Options
Using an object, we must define the behaviorClass attribute to refer to our behaviors and then add any extra options with keys matching the option we want to override. Any passed options will override the defaults passed.
-
Marionette.js. Behavior Options
When we attach behaviors to views, we can also pass in options to add to the behavior. This tends to be static information relating to what the behavior should do.
-
Marionette.js. Defining and Attaching Behaviors
No-Library (pure JS), HTML, CSS, JavaScript
-
Marionette.js. Using Behaviors
The easiest way to see how to use the Behavior class is to take an example view and factor out common behavior to be shared across other views.
-
yovad75L
No-Library (pure JS), HTML, CSS, JavaScript
-
5qsmsu2x
No-Library (pure JS), HTML, CSS, JavaScript
-
uzc8or6u
No-Library (pure JS), HTML, CSS, JavaScript
-
Marionette.js. Application. Start
The Application comes with a start method. This can be used to accomplish tasks before the rest of your application begins. Let's take a quick look at an example: