backbone.marionette
Advanced tools
Changelog
v3.4.3 view commit logs
NextCollectionView
collection single model remove no longer incorrectly removes all childrenEmptyView
will correctly display if a NextCollectionView
is rendered in initialize
Changelog
v3.4.2 view commit logs
$el
setDomApi
and setRenderer
class methods now correctly return the prototype when calledChangelog
v3.4.1 view commit logs
package.json
as this was breaking for some buildsdetachContents
will now correctly detach when using monitorViewEvents: false
on a NextCollectionView
Changelog
v3.4.0 view commit logs
monitorViewEvents
was added as an option to all Views to disable DOM lifecycle eventsswapChildViews
to NextCollectionView
viewComparator: false
option to NextCollectionView
for disabling the default sortNextCollectionView
attachHtml
no longer receives the view as the first argumentdom:refresh
eventel
has contents and not only if it has an el
Backbone.Radio
is still a dependency, it will no longer cause Marionette to error if nonexistentChangelog
v3.3.1 view commit logs
defaults
deprecation notice was always triggeringChangelog
v3.3.0 view commit logs
removeView
and isSwapping
to Region
to better support animationNextCollectionView
added as a potential replacement for CollectionView
in v4initialize
event to behaviorsgetRegion
will now render the region's view if it is currently not renderedbehavior
or a region
is destroyed it will now be removed from the viewonDomRemove
event for better clean up of things added in onDomRefresh
childViewEventPrefix
feature flag to allow for false
by defaultdetach
events when restoring eltemplate: false
deprecated in favor of template: _.noop
defaults
deprecated in favor of setting options
on the Behavior definitionMarionette.Renderer
in favor of new custom view renderer.Changelog
v3.2.0 view commit logs
View.childViewEvents
should support trigger
CollectionView.viewComparator
no longer sorts collection.models
CollectionView
re-indexes correctly when removing views.CollectionView.filter
can filter by View
child indexRegion
will no longer detach pre-existing HTML when View
's el is already in the regionRegion
clean up when View
is destroy
edCollectionView.children
by View
and not Model
MarionetteError
"ViewDestroyError" from View
'sChangelog
v3.1.0 view commit logs
triggerMethod
, mergeOptions
and other internal event handlersupdate
eventRegion.detachView
and View.detachChildView
were added for removing a view from a region without destroying it. This is preferred to the now deprecated preventDestroy
region show/empty optionchildViewEventPrefix: false
will disable auto-proxying of child events to the parent viewApplication
will now accept a region definition object literal as an instantiation optionempty
's preventDestroy
option was deprecated in favor of detachView
selector
key was deprecated due to redundacy in favor of the existing key el
attachHtml
so overriding no longer breaks replaceElement
functionalityView.normalizeUIString
for external librariesChangelog
v3.0.0
Version 3.0.0 of Marionette has arrived and contains many improvements over version 2.x but also some API Changes. Below is a list of the changes made to each component.
To help the community transition over we have released a v2 patch tool to assist the upgrade. [Marionette Patch Tool] (https://github.com/marionettejs/marionette-v3-compat)
LayoutView
+ ItemView
merge and rename to View
.Marionette.View
-> ViewMixin
LayoutView
shortcut methods such as showChildView
.isDestroyed
and isRendered
made private with a public accessor method._isDestroyed
to false by defaultBackbone.View
with result of options (163188eeb8)CompositeView
's renderChildren
is now public.childEvents
to childViewEvents
.templateHelpers
to templateContext
before:render
is triggered before emptying regions.getRegion
to access the region or showChildView
to show a View
within it.CompositeView
to attach to existing HTML with template:false
hasRegion
for layoutspreventDestroy
to region.empty
.View
now removes its element before destroying child regions. There was an option to turn it on, but now it’s available by default. This helps remove all of the synchronous paints going up the tree.childView
attribute now accepts a functiongetChildView
was removedemptyView
now accepts a function as an arg.apply:filter
event from CollectionView
.removeChildView
now returns the removed view.addRegion
, it now behaves like addRegions
and adds the region to internal this.regions.View
can replace regions's el.region-mixin
.buildRegion
swap
events.Application
(rootRegion
)vent
, commands
, requests
Object.isDestroyed
var
and let
with const
.DEV_MODE
_.rest
multiple arg usage to drop for lodash 3 support.cid
field to object, application, behavior, and regionTemplateCache
options.delegateEntityEvents
. Delegate Events used to set delegate entity events, it was extracted because now backbone calls delegateEvent everytime the element is set.Backbone.Babysitter
to Mn
and removed the Babysitter dependency.CompositeView
Behavior
Lookups.Marionette.Module
- there’s a shim that you can pull in to get Module and DeferredMarionette.Deferred
component.json
Controller
Callbacks
Wreqr
(replaced with Radio
)actAsCollection
_getValue
.render:collection
=> render:children
bindEntityEvents
=> bindEvents
.