marionette.toolkit
Advanced tools
Changelog
v4.0.0
App
before:start
and waits until before start
to delegate stateEvents
getInitState
in favor of setting the state in before:start
setRegion
now returns the set region instancedestroy
now returns the app instancedestroy
now calls the Application prototype instead of ObjectViewEventsMixin
restart
and isRestarting
featurestart
now accepts a view optionsetView
/ getView
feature allowing setting up children with the App's API prior to showView
getRegion
now accepts an argument of a region name that is sugar for myApp.getView().getRegion('regionName')
showView
will show the "set" view if not passed a 1st argumentshowChildView
/ getChildView
for interaction with the children of the App's viewComponent
viewEventPrefix
is now defaulted to false
stateEvents
is now delegated after initialize
this allows for setState in initialize
ViewEventsMixin
destroy
now returns the component instanceChildAppMixin
startChildApp
/ stopChildApp
now return the child app instanceStateMixin
delegateStateEvents
/ undelegateStateEvents
for binding and unbinding stateEvents
ViewEventsMixin
- This new mixin adds Marionette.View like support for view event proxying
The API is analogous to childViewEventPrefix
, childViewEvents
and childViewTriggers
viewEventPrefix
defaulting to false allows for auto-proxying events from the view to the app or componentviewEvents
allows app or component handlers of view eventsviewTriggers
triggers an event on the app or component when an event is triggered on the viewChangelog
v3.1.0
App
stateEvents
when passed at App instantiationstateEvents
after App stopshowChildView
/ getChildView
Changelog
v3.0.1
App
Changelog
v3.0.0
App
setRegion
to modify an App's region
region
to be passed to App#start
start
and stop
are no longer binded to the AppChangelog
v2.0.0
App
App
now extends Marionette.Application
initState
from App
constructor to start
restartState
functionalitygetInitState
functionality to allow user to override and modify state on App start
isDestroyed
functionality and isDestroyed
flag as this is now supported in Marionette.Application
StateModel
during App
initialization via ClassOptions
Component
Marionette.View
instead of deprecated Marionette.ItemView
getRegion
functionalityStateMixin
unbindEvents
instead of unbindEntityEvents
ChildAppsMixin
startChildApp
/stopChildApp
functionalityChangelog
v1.0.0
StateMixin
:
StateClass
and is now a POJO instead of a Marionette.object
Marionette.Object
or Marionette.View
stateDefaults
has been removed in favor of state being passed in options
hashinitState
adds ability to reinitialize state at any point during the life-time of Marionette.object
/ Marionette.View
resetStateDefaults
adds ability to reset state defined in defaultsdestroyState
has been replaced by _destoryState
to privatize state deletionChildAppsMixin
:
childAppsOptions
EventListenerMixin
now handles App
event-listener functionalityMarionette.Toolkit.MixinState
is a utiltiy function created to make it easy to mix StateMixin
into any Marionette.object
or Marionette.View
AbstractApp
has been removed and functionality moved into App
App
:
StateClass
as AbstractApp
previously didStateMixin
, ChildAppsMixin
, and EventListenerMixin
restart
_isDestroyed
is now the last action of destroy
method to align with Marionette v3Component
:
Marionette.Object
and not StateClass
StateMixin
stateModel
to currentView
in favor of passing only attributes
ES6
usagedependencies
to peerdependencies
Node
v4 and several other updates_buildPackages
and NPM
deploy functionality as project will no longer publish packages individuallyBrowserify
build process with Rollup
JSHint
to ESLint
Changelog
v0.4.1
options
as an object.