Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- initItemResepList() {
- const vm = this
- vm.itemResepListInstance.option({
- keyExpr: 'id_tmp',
- collapsible: true,
- multiple: true,
- animationDuration: 500,
- noDataText: '',
- items: vm.dataSource,
- selectedIndex: -1,
- onItemRendered: function (e) {
- console.log('onItemRendered', e);
- vm.$nextTick().then(() => {
- vm.initJenisResepTab(e.itemData.id_tmp)
- })
- },
- })
- },
- repaintItemResepList() {
- console.log('repaintItemResepList');
- const vm = this
- const totalCount = vm.dataSource.length
- vm.itemResepListInstance.repaint()
- vm.itemResepListInstance.option('selectedIndex', totalCount - 1)
- // vm.itemResepListInstance.expandItem(totalCount - 1)
- // vm.itemResepListInstance.option('selectedItems', vm.dataSource)
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement