百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

angular-gridster2

> 前端框架
开源

Angular Gridster 2

1.3K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Angular Gridster 2

angular-gridster2

Angular 实现的 angular-gridster Demo

需要 Angular 22.x

对于其他 Angular 版本,请查看其他分支。

浏览器支持

Angular 支持的内容 这里

安装

npm install angular-gridster2 --save

如何使用

javascript
import {Component} from '@angular/core';
import {Gridster, GridsterItem} from 'angular-gridster2';

@Component({
  standalone: true,
  imports: [Gridster, GridsterItem],
  ...
})
xml

  @for (item of dashboard; track item) {
  
    
  
  }

初始化简单的仪表板:

…
注意: gridster 会从父组件中占用所有可用空间。它不会根据内容来调整大小。组件的父组件需要具有大小。

在小组件内容中包含 iFrame

iFrames 可能会干扰小组件的拖动/调整。如需解决方法,请阅读 此问题 #233

无需拖动即可与内容交互

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptangular2angularjsdashboardgridster

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架