Advertisement
Purwadi

Untitled

May 23rd, 2023
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1.  
  2. initItemResepList() {
  3. const vm = this
  4.  
  5. vm.itemResepListInstance.option({
  6. keyExpr: 'id_tmp',
  7. collapsible: true,
  8. multiple: true,
  9. animationDuration: 500,
  10. noDataText: '',
  11. items: vm.dataSource,
  12. selectedIndex: -1,
  13. onItemRendered: function (e) {
  14. console.log('onItemRendered', e);
  15.  
  16. vm.$nextTick().then(() => {
  17. vm.initJenisResepTab(e.itemData.id_tmp)
  18. })
  19. },
  20. })
  21. },
  22. repaintItemResepList() {
  23. console.log('repaintItemResepList');
  24. const vm = this
  25. const totalCount = vm.dataSource.length
  26.  
  27. vm.itemResepListInstance.repaint()
  28. vm.itemResepListInstance.option('selectedIndex', totalCount - 1)
  29. // vm.itemResepListInstance.expandItem(totalCount - 1)
  30. // vm.itemResepListInstance.option('selectedItems', vm.dataSource)
  31. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement