@schneideress/dashboardframework 20.0.15 → 20.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -948,6 +948,20 @@ declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
|
948
948
|
formatWidgetDataForPositionDetails(widgetItemList: IWidgetInfo[]): any;
|
|
949
949
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
950
950
|
loadWidgets(userDashboarId: number, areaKey: string): void;
|
|
951
|
+
/**
|
|
952
|
+
* Arranges widgets in a 2-column grid layout for Site Detail dashboard
|
|
953
|
+
* @param widgets - Array of widget objects to be arranged
|
|
954
|
+
* @returns Modified widgets array with updated positions and dimensions. If more widgets exist than maxWidgetCount, only the last N widgets are positioned in the grid.
|
|
955
|
+
*
|
|
956
|
+
* Layout pattern (for last N widgets in 2-column layout):
|
|
957
|
+
* - Widget n-3: x=0, y=0 (top-left)
|
|
958
|
+
* - Widget n-2: x=4, y=0 (top-right)
|
|
959
|
+
* - Widget n-1: x=0, y=2 (second row-left)
|
|
960
|
+
* - Widget n: x=4, y=2 (second row-right)
|
|
961
|
+
*
|
|
962
|
+
* Additional widgets beyond maxWidgetCount are removed from the beginning of the array.
|
|
963
|
+
*/
|
|
964
|
+
arrangeWidgetsInTwoColumnGrid(widgets: any): any;
|
|
951
965
|
/** To set Area(Gridster) height dynamically as widgets are added/removed */
|
|
952
966
|
setAreaHeight(): void;
|
|
953
967
|
/** To remove a widget instance from dashboard and to save info in database */
|