Skip to content

Commit

Permalink
Added live example for 'Adding Regions' doc
Browse files Browse the repository at this point in the history
Proposed changes
The live example shows a practical scenario where regions are added to the view depending on the model

Link to the issue: marionettejs#3209
  • Loading branch information
CharlyJazz authored and blikblum committed Jun 30, 2018
1 parent 31099a9 commit e013eac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/marionette.region.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const MyApp = Application.extend({
});
```

[Live example](http://jsfiddle.net/marionettejs/9fburmb8/)

For more information, see the
[Application docs](./marionette.application.md#application-region).

Expand Down Expand Up @@ -259,6 +261,8 @@ myView.addRegions({
});
```

[Live example](http://jsfiddle.net/marionettejs/kjvzdyd6/)

## Removing Regions

You can remove all of the regions from a view by calling `removeRegions` or you can remove a
Expand Down

0 comments on commit e013eac

Please sign in to comment.