palantir/blueprint
Loading state for tree nodes while children are loading asynchronously
开放
#3,729 创建于 2019年9月9日
Package: coreType: feature requesthelp wanted
仓库指标
- 星标
- (20,263 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Would it work if one was to set the hasCaret prop to whether or not children are available, display a spinner upon onExpand while fetching content from elsewhere, and then replace the spinner with the actual content upon completion?
If so, what would be an elegant way to display a spinner? At first glance, it seems like the only valid type of children are again tree nodes. Those could at least have a label "loading" and be disabled for the time being, however I would much rather prefer a spinner. Could the children prop be used for this?
Thanks for any hints.