0

I have a custom region for my main application that allows me to do page transitions. This works for one style of transition, but how would I go about creating different transitions for this region.

Can we set multiple regionTypes on the same region, or would I have to pass the transition type to my modified Marionette region show function and go from there. Any help would be appreciated, thanks.

        App.addRegions {
            main: {
                selector: "#page",
                regionType: Fold
            }
        }
4

1 回答 1

0

您不能将多种类型关联到同一区域。
如果知道使用哪种渲染方式的知识是区域经理的角色还是区域经理的角色,您的选择就变成了。

从您传入“转换类型”的声明中,您认为确定要使用哪个转换的责任不是区域经理的职责。

根据您的设计,这个问题可能会得到更好的回答。

希望这有帮助。

于 2013-08-16T15:53:11.867 回答