我是 angular gridster 2 的新手
如果我们能够使用 angular gridster 2 显示已经开发的图表,请告诉我,我也希望看到相同的方法。因为我的 UI 有 5 个不同的 div 块,并且在里面每个 div 块中都显示了一张卡片..
加载页面后,如何使用 angular gridster 显示这 5 张具有可拖动和可调整大小功能的卡片。
<gridster [options]="options">
<div class="col-md-12 ml-auto mr-auto" >
<div class="row" > <!--[item]="item" *ngFor="let item of dashboard" gridster-item-->
<gridster-item class="col-lg-3 col-md-6 col-sm-6" [item]="item" *ngFor="let item of dashboard" >
<card1></card1>
<card2></card2>
</gridster-item>
</gridster>
export class dashboard implements oninit{
options={
draggable: {
enabled: true},
resizable: {
enabled: true
}
};
dashboard = [
{cols: 1, rows: 1, y: 0, x: 0}
];
}
请解释行、列、x 和 y 代表什么。如果这些值发生更改,它将如何影响 UI。