VersionGrid
Displays a list of versions and the transactions they contain. For use with the Versions feature.
Configure the VersionGrid with a ProjectModel using the project config.
Configs
163
Configs
163Common
Other
The id of the version currently being compared, if any.
The date format used for displaying date values in change actions.
The ProjectModel whose versions and changes are being observed in this grid.
Whether to show only versions that have been assigned a specific name.
Whether to display transactions not yet associated with a version.
Whether to include version rows in the display.
Content
CSS
DOM
Float & align
Layout
Masking
misc
Misc
State
Tree
Properties
144
Properties
144Common
Class hierarchy
Other
The id of the version currently being compared, if any.
Whether to show only versions that have been assigned a specific name.
Whether to display transactions not yet associated with a version.
Whether to include version rows in the display.
CSS
DOM
Layout
Misc
Scrolling
Selection
State
Tree
Widget hierarchy
Functions
129
Functions
129Other
Sorts the actions within a transaction using precedence heuristic to show most "significant" actions first.
| Parameter | Type | Description |
|---|---|---|
actions | ChangeLogAction[] |
Configuration
Events
Getters
Misc
Rendering
Rows
Scrolling
Selection
Widget hierarchy
Events
49
Events
49Fires when the user chooses to compare a selected version.
// Adding a listener using the "on" method
versionGrid.on('compare', ({ version }) => {
});| Parameter | Type | Description |
|---|---|---|
version | VersionModel | The VersionModel being restored |
Fires when the user chooses to restore a selected version.
// Adding a listener using the "on" method
versionGrid.on('restore', ({ version }) => {
});| Parameter | Type | Description |
|---|---|---|
version | VersionModel | The VersionModel being restored |
Fires when the user chooses to stop comparing a currently compared version.
// Adding a listener using the "on" method
versionGrid.on('stopCompare', ({ }) => {
});Event handlers
49
Event handlers
49Called when the user chooses to compare a selected version.
new VersionGrid({
onCompare({ version }) {
}
});| Parameter | Type | Description |
|---|---|---|
version | VersionModel | The VersionModel being restored |
Called when the user chooses to restore a selected version.
new VersionGrid({
onRestore({ version }) {
}
});| Parameter | Type | Description |
|---|---|---|
version | VersionModel | The VersionModel being restored |
Called when the user chooses to stop comparing a currently compared version.
new VersionGrid({
onStopCompare({ }) {
}
});Typedefs
15
Typedefs
15CSS variables
85
CSS variables
85| Name | Description |
|---|---|
--b-version-grid-property-value-background | Value background |
--b-version-grid-property-font-size | Property font size |