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

Table 远程模式支持由外界发起请求等操作 #58

Closed
afc163 opened this issue Jul 22, 2015 · 7 comments
Closed

Table 远程模式支持由外界发起请求等操作 #58

afc163 opened this issue Jul 22, 2015 · 7 comments

Comments

@afc163
Copy link
Member

afc163 commented Jul 22, 2015

var dataSource = new Table.DataSource({
  url: 'xxx',
  getParams: function() { ... }
  ...
});

// 重新拉取数据
dataSource.fetch();
@afc163
Copy link
Member Author

afc163 commented Jul 22, 2015

交给逸达。

@afc163 afc163 changed the title Table 远程模式支持外界进行交互 Table 远程模式支持由外界发起请求等操作 Jul 22, 2015
@afc163 afc163 added the 需求 label Jul 22, 2015
@ustccjw
Copy link
Contributor

ustccjw commented Jul 23, 2015

远程模式存在的意义是什么?个人觉得组件与 action(fetch data) 最好分开。

@immkoala
Copy link

同意@ustccjw的观点。
还有为了远程模式强行依赖jquery感觉有点……
我觉得可以考虑一些更轻量的request库。

@yiminghe
Copy link
Contributor

这个封装是必要的,能够减少大多数场景的数据请求,渲染代码。

@dqaria
Copy link
Contributor

dqaria commented Aug 4, 2015

7ba8e08 已提交

@afc163
Copy link
Member Author

afc163 commented Aug 6, 2015

cfaabbb

@afc163 afc163 closed this as completed Aug 6, 2015
@lock
Copy link

lock bot commented May 7, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants