Title: vue version How to expand the specified node of the treegrid component Post by: fengdie on October 25, 2018, 01:47:58 AM i want expand and append treegrid node.(我想要调用treegrid的事件,展开节点。或者往节点里面插入数据)
jquery version code: Code: if (node.state == 'closed') { Title: Re: vue version How to expand the specified node of the treegrid component Post by: jarry on October 25, 2018, 06:08:52 PM Set the row's 'state' property with 'open' or 'closed' to expand or collapse it.
Code: let row = ... // get your row Title: Re: vue version How to expand the specified node of the treegrid component Post by: fengdie on October 25, 2018, 08:18:28 PM Set the row's 'state' property with 'open' can't trigger 'rowExpand' event
Code: if (this.selectRow.state == 'closed') { Title: Re: vue version How to expand the specified node of the treegrid component Post by: jarry on October 26, 2018, 12:46:31 AM Call this code to trigger the 'rowExpand' event.
Code: this.$refs.tg.$emit('rowExpand', row) Title: Re: vue version How to expand the specified node of the treegrid component Post by: fengdie on October 26, 2018, 06:34:40 AM trigger the 'rowExpand' event after, how to set icon 'loading'?
手动触发rowExpad事件,有点小问题。就是图标不是'loading'状态,怎么设置? 我参考了TreeGridRow.js里面,怎么在外部设置loading = true? Code: toggle(event) { Title: Re: vue version How to expand the specified node of the treegrid component Post by: jarry on October 28, 2018, 12:21:11 AM Set the row's iconCls with tree-loading to display loading icon.
|