Whether to auto-navigate to the record when double-clicked. Defaults to true.
Use DataLoaded.
The same emitter under the old binding name, so a template still binding (dataLoaded) keeps working. Must stay AFTER DataLoaded: class fields initialise in order, and the other way round this captures undefined.
Emitted when the grid data is loaded.
Height of the grid. Can be a number (pixels), 'auto', or 'fit-content'. Defaults to 'auto'.
Optional: The List entity object if already loaded. If provided, avoids an extra database call to load the list.
The List ID to display records for. When set, the component loads the list entity and builds a filter to show only records that are in this list.
If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.
Use RowClicked.
The same emitter under the old binding name, so a template still binding (rowClicked) keeps working. Must stay AFTER RowClicked: class fields initialise in order, and the other way round this captures undefined.
Emitted when a row is clicked (single click).
Use RowDoubleClicked.
The same emitter under the old binding name, so a template still binding (rowDoubleClicked) keeps working. Must stay AFTER RowDoubleClicked: class fields initialise in order, and the other way round this captures undefined.
Emitted when a row is double-clicked.
Use SelectionChange.
The same emitter under the old binding name, so a template still binding (selectionChange) keeps working. Must stay AFTER SelectionChange: class fields initialise in order, and the other way round this captures undefined.
Emitted when row selection changes (for checkbox mode).
Selection mode for the grid. Defaults to 'single'.
Show the grid toolbar. Defaults to true.
Custom toolbar configuration. If not provided, uses default.
StaticɵdirStaticɵfacUse AutoNavigate.
Get the effective toolbar config (custom or default)
Use EntityDataGrid.
Use EntityInfo.
Use GridParams.
Use ListEntity.
Use ListId.
Use ListLoaded.
Returns either the default Metadata provider or the one specified in the Provider property, if it was specified
Use RowCount.
Get the total row count
Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified
Returns either the default RunView provider or the one specified in the Provider property, if it was specified
Use SelectedCount.
Get the selected row count
Use SelectedKeys.
Use ShowToolbar.
Use ToolbarConfig.
Use TotalRowCount.
Use ClearSelection.
Clear all selections
Trigger the export dialog
Use GetSelectedRows.
Get the currently selected entity objects
A callback method that is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.
The changed properties.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
Handle row double-click event from the grid
Handle selection change from the grid
Use Refresh.
Refresh the grid data
Use SelectAll.
Select all rows
Select specific rows by key
ListDetailGridComponent - Displays records from a List using mj-entity-data-grid
This component wraps the modern mj-entity-data-grid component to display records that belong to a specific List. It uses a subquery filter to fetch only records whose IDs are in the List Details for the given ListID.
Example