Comments (5)
use api:
setScrollLeft
or
scrollToCell(cellAddr: { col?: number; row?: number })=>void
@zairl23
from vtable.
Thank you! Another question: is there the api to draw a vertical red lines in the vtable which can move by following scrollToCell api call。 @fangsmile
from vtable.
args.table.getSelectedCellInfos() 获取选中状态 判断后确定自定义渲染元素应该什么
from vtable.
can draw this vertical line using cusomRenderer and animate the vertical line
@fangsmile
from vtable.
滚动好搞,示例后面加这么一段话:
let animationId;
let scrollX=0;
let t = Date.now();
function animate() {
console.log('animate')
// 更新动画的逻辑代码
const t1 = Date.now();
if (scrollX>=tableInstance.getAllColsWidth()) {
console.log('cancelAnimationFrame');
cancelAnimationFrame(animationId);
return;
}
if(t1-t>=30){
t=t1;
tableInstance.setScrollLeft(scrollX);
scrollX+=3;
}
// 执行动画播放
animationId = requestAnimationFrame(animate);
}
// 开始动画播放
animationId = requestAnimationFrame(animate);
不过如果支持那条竖线需要写自定义函数了。可以加我们的飞书交流群找我进行具体业务场景的交流
@zairl23
from vtable.
Related Issues (20)
- [Feature] just has rowSeriesNumber but not has columns should render
- 透视表的数据格式按类似普通表的格式传入,可以正常显示,但是无法使用排序功能
- [Bug] HOT 1
- [Bug] 偶数行表头时,icon图标设置hover改变事件时,icon图片渲染有问题 HOT 3
- [Bug] ListTable 使用树结构数据,配置 menu.defaultHeaderMenuItems 会报错 HOT 2
- [Feature] 透视表 tooltip挂载到body下, 避免被遮盖;
- [Bug] rowSeriesNumber 存在时,合并单元格,rowSeriesNumber 会重复渲染合并列内容
- [Bug] @visactor/react-vtable 在1.6.2移除了VTable的导出 HOT 3
- vtable设置了分页属性,导出Excel的时候能不能新增配置导出全部数据,而不仅仅是当前页的数据
- [Bug] offsetWidth and offsetHeight value get floor number
- 配置了行序号,转置了表格,行序号没有转置成列序号,有没有方案可以渲染列序号呢? HOT 5
- [Bug] ChangeHeaderPosition event should not be trigger, when move header postion failed
- [Bug] ```PivotTable```使用`Editor`编辑数据后,获取更新后的数据失败 HOT 3
- [Bug] pivot tree can not show value and expand tree occor error
- [Bug] 合并单元格情况,progress 不居中;[feature] CustomLayout 增加VProgressbar元图,方便合并单元格的时候自定义渲染
- 是否可以给表头增加一行用来配置【查询条件】功能类似表单 HOT 4
- [Feature] 分组标题自定义太复杂了 HOT 4
- [Feature] ILinkColumnBodyDefine建议增加页面内跳转,现在是只能弹新窗口
- [Feature] 建议增加数据过滤栏 HOT 4
- [Bug] 配置headerCustomRender,改变列宽报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtable.