Class: VersionTimelineGroupsView

VersionTimelineGroupsView()

A view that manages and renders multiple VersionTimelineGroupView instances, each representing a group of object versions for a specific date.

Screenshot

Constructor

new VersionTimelineGroupsView()

Since:
  • 2.37.0
Source:

Extends

  • Backbone.View

Members

type :string

Identifier used when the application inspects view types.
Type:
  • string
Source:

Methods

addOne(model)

Add a group view for a newly added model.
Parameters:
Name Type Description
model Backbone.Model Added group model.
Source:

addTooltips()

Add tooltips to the ObjectVersionViews within each group.
Source:

ensureChildView(model) → {VersionTimelineGroupView}

Ensure a child group view exists for the given model.
Parameters:
Name Type Description
model Backbone.Model VersionTimeLineGroup model (defined in VersionTimelineGroups collection).
Source:
Returns:
The group view instance.
Type
VersionTimelineGroupView

initialize(options)

Initialize the view and bind collection listeners.
Parameters:
Name Type Description
options object View options.
Properties
Name Type Attributes Description
referencePid string <optional>
PID used for badge context.
Source:

onClose()

Clean up child views.
Source:

remove()

Source:

removeOne(model)

Remove the group view for a removed model.
Parameters:
Name Type Description
model Backbone.Model Removed group model.
Source:

render() → {VersionTimelineGroupsView}

Render all group views in the collection.
Source:
Returns:
The view instance.
Type
VersionTimelineGroupsView

updateGroupDate(model)

Update the group view's date header when its date or label changes.
Parameters:
Name Type Description
model Backbone.Model Updated group model.
Source:

updateGroupModels(model)

Update the group view's models when the group changes.
Parameters:
Name Type Description
model Backbone.Model Updated group model.
Source:

updateVisualState()

Sync the ObjectGroupViews hidden/conflict classes with their models' hiddenByUI and hasDateConflict properties. Run after batch-updating models.
Source: