controller aliases
This commit is contained in:
@@ -51,12 +51,12 @@ export class UmbCollectionSelectionActionsElement extends UmbLitElement {
|
||||
// TODO: Make sure it only updates on length change.
|
||||
this.observe(this._collectionContext.items, (mediaItems) => {
|
||||
this._nodesLength = mediaItems.length;
|
||||
});
|
||||
}, 'observeItem');
|
||||
|
||||
this.observe(this._collectionContext.selection, (selection) => {
|
||||
this._selectionLength = selection.length;
|
||||
this._selection = selection;
|
||||
});
|
||||
}, 'observeSelection');
|
||||
}
|
||||
|
||||
private _renderSelectionCount() {
|
||||
@@ -74,6 +74,7 @@ export class UmbCollectionSelectionActionsElement extends UmbLitElement {
|
||||
(bulkActions) => {
|
||||
this._entityBulkActions = bulkActions;
|
||||
}
|
||||
, 'observeEntityBulkActions'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,17 @@
|
||||
import { UmbDatasetContext } from "./dataset-context.interface.js";
|
||||
import { UmbVariantId } from "@umbraco-cms/backoffice/variant";
|
||||
|
||||
|
||||
/**
|
||||
* A dataset context for a variant.
|
||||
*
|
||||
* @notes
|
||||
* This one will depending on the origin of such deliver:
|
||||
* - name
|
||||
* - a variant id
|
||||
* - a workspace reference
|
||||
* - save state (this should depend on the workspace, this will become another superset of the dataset)
|
||||
* - publish state (this should depend on the workspace, this will become another superset of the dataset)
|
||||
*/
|
||||
export interface UmbVariantDatasetContext extends UmbDatasetContext {
|
||||
getVariantId: () => UmbVariantId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user