example of effects on single region

That's cool!

Thanks Jason.


On Fri, Aug 8, 2014 at 8:16 PM, Jason Laster <notifications@github.com>
wrote:

> In docs/marionette.region.md:
>
> > @@ -187,6 +187,19 @@ Marionette.Region.prototype.attachHtml = function(view){
> >  This example will cause a view to slide down from the top
> >  of the region, instead of just appearing in place.
> >
> > +It is possible to set a custom render method for a single region.
> > +
> > +```js
> > +MyApp.addRegions({
>
> @testbrian <https://github.com/testbrian>, I think what @samccone
> <https://github.com/samccone> is saying is:
>
> var ModalRegion = Region.extend({
>   attachHtml: function(view){
>     // Some effect to show the modal
>   }});
> MyApp.addRegions({
>   mainRegion: "#main-content",
>   modal: "#modal-region",
>   regionClass: ModalRegion});
>
> I personally think both are good approaches that should be documented.
> You'll have to check, but I bet we have documentation showing the
> regionClass example, so maybe we just need yours...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/marionettejs/backbone.marionette/pull/1692/files#r16007840>
> .
>