Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

改写toolbox的dataView 怎么办? #1316

Closed
sheldon-xie opened this issue Mar 4, 2015 · 4 comments
Closed

改写toolbox的dataView 怎么办? #1316

sheldon-xie opened this issue Mar 4, 2015 · 4 comments

Comments

@sheldon-xie
Copy link

领导要求这个展示界面要改,改写这个功能,改成html的table展示,请问怎么改最好?

@kener
Copy link
Contributor

kener commented Mar 4, 2015

目前的optionToContent只支持自定义返回字符串到textArea里,暂不支持覆盖这个textArea为其他类型的dom,这其实是我们最初的想法,是应该可以让用户复写为如table这样的展现形式,谢谢反馈,后续升级吧。

@LuffyChan888
Copy link

本人暂时的做法.

  1. 添加一个隐藏的绝对定位的div(自己控制位置,可以刚好覆盖显示图表的canvas),在这个div里用table的形式展示数据
  2. toolbox里添加一个自定义的功能 ( http://echarts.baidu.com/doc/example/toolbox.html ),
    在这个自定义功能的onclick属性里控制 div显示和隐藏

希望能帮到你。

kener added a commit that referenced this issue Mar 5, 2015
@kener
Copy link
Contributor

kener commented Mar 5, 2015

dataview

@kener kener closed this as completed Mar 5, 2015
@chj-damon
Copy link

@kener 目前这个textarea无法滚动,当表格数据很多的时候,应该怎么配置?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants