Skip to content

Commit b88b5b8

Browse files
update readme
1 parent e4a2d22 commit b88b5b8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ const result = api.isOpen('tab ID');
652652

653653
### open
654654

655-
triggers 'onChange', 'onInit' and 'onOpen' event.
655+
triggers 'onInit', 'onChange' and 'onOpen' event.
656656

657657
Return value : Promise
658658

@@ -672,7 +672,7 @@ if( api.isOpen('2') == false ){
672672
closable: true,
673673
iconClass: '',
674674
panelComponent: <ContactPanel></ContactPanel>
675-
}).then(()=>{
675+
}).then(({currentDta,instance})=>{
676676
//do sth here
677677
});
678678
}
@@ -696,7 +696,7 @@ const result = api.isSelected('tab ID');
696696

697697
### select
698698

699-
triggers 'onChange', 'onInit' and 'onSelect' event.
699+
triggers 'onInit', 'onChange' and 'onSelect' event.
700700

701701
Return value : Promise
702702

@@ -708,7 +708,7 @@ Parameters:
708708

709709
```js
710710
if( api.isSelected('your tab id') == false ){
711-
api.select('your tab id').then(()=>{
711+
api.select('your tab id').then(({currentDta,instance})=>{
712712
//do sth here
713713
});
714714
}
@@ -717,7 +717,7 @@ if( api.isSelected('your tab id') == false ){
717717

718718
### close
719719

720-
triggers 'onChange', 'onInit' and 'onClose' event.
720+
triggers 'onInit', 'onChange' and 'onClose' event.
721721

722722
Return value : Promise
723723

@@ -729,7 +729,7 @@ Parameters:
729729

730730
```js
731731
if( api.isOpen('2') == true ){
732-
api.close('2').then(()=>{
732+
api.close('2').then(({currentDta,instance})=>{
733733
//do sth here
734734
});
735735
}
@@ -746,7 +746,7 @@ Return value : Promise
746746
**Example**
747747

748748
```js
749-
api.refresh().then(()=>{
749+
api.refresh().then(({currentDta,instance})=>{
750750
//do sth here
751751
});
752752
```

0 commit comments

Comments
 (0)