Angular Spreadsheet Component | ng-hub-ui-spreadsheet
Editable Angular spreadsheet with Excel's keyboard, rectangular selection, a clipboard that round-trips with Excel, frozen panes and merged cells. MIT, accessible, no paid tier.
交互式示例
探索实时示例,了解该库在常见 Angular 用例中的表现。
编辑与剪贴板
可编辑的表格
Click a cell and type, or press F2 to edit keeping the value. Enter commits and drops a row, Tab commits and moves right.
与 Excel 复制粘贴
Select a range, copy it, and paste it into Excel. Or the other way round.
列类型,以及使用自定义编辑器
A click picks a cell; a double click, F2 or simply typing opens it. Open Status for a list, Due for a date and Assignee for a searchable hub-select supplied by this page; Billable takes one click on its box. Hover an empty Due or Assignee cell to see its hint.
用别名写,也用坐标写的公式
Change a quantity and the totals follow. Open a Total cell to see the formula, and the last row to see a column added up.
自己画某一列的单元格:徽章与操作
Pick a row and use the actions at the end. Copy the State column into a spreadsheet: what travels is paid, not the badge.
把控件库接一次,而不是每列写一个模板
Queue and Severity have no editor of their own. Open one and it is the house select, with its search box.
表格形态
冻结的行与列
Scroll sideways and down. The region column and the first row stay put, and the seam is drawn on the last frozen track.
合并的区块
The Monday workshop spans two hours, and Wednesday's review spans three. Arrow into one, then try selecting only part of it. Select a rectangle and right-click to put it together, or right-click a block to take it apart.
一万行乘五十列,文档里只放着一屏
10,000 rows and 52 columns. Scroll either way: the document holds a screenful at a time, and the first column stays put.
填充手柄,以及一步撤销整次拖拽
Select the two codes, then drag the corner square down. Undo with Ctrl+Z.
调整列宽与重新排序
Drag the right edge of a header to widen it, or drag the header itself to move the column.
状态与结构
每个单元格的保存状态
Edit a price. Anything ending in 9 fails on purpose, so you can see the error state.
增删行与列
Add a column, remove it, add another: the alias never comes back.
Aliases handed out so far
description · col-1使用信号表单进行逐单元格校验
导出到 Excel 或 CSV,再导回来
Export it, open it in Excel, change a quantity, save it and bring it back.