Skip to content

Commit 7e5bd57

Browse files
committed
preparation
1 parent f609211 commit 7e5bd57

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Name | Return Value | Description | Sample
115115
**getBsModalInstance** | bootstrap.Modal | return instance of bootstrap modal | const bsModal = dtp1Instance.getBsModalInstance()
116116
**updateOption** | void | update one option of date picker | dtp1Instance.updateOption('isGregorian', false)
117117
**updateOptions** | void | update one option of date picker | dtp1Instance.updateOptions({ isGregorian: false, inLine: false, ... })
118-
**getInstance** | MdsPersianDateTimePicker | static method, get instance of MdsDatePicker by element | const jalaliObj = mds.MdsPersianDateTimePicker.dtp1Instance.getInstance(document.getELementById('IdOElement'));
118+
**getInstance** | MdsPersianDateTimePicker | static method, get instance of MdsDatePicker by an element obj | const jalaliObj = mds.MdsPersianDateTimePicker.getInstance(document.getELementById('IdOElement'));
119119
**getText** | string | Get selected date text | const txt = dtp1Instance.getText()
120120
**getDate** | Date | Get selected date | const dateObj = dtp1Instance.getDate()
121121
**getDateRange** | [fromDate, toDate]: Date[] | Get selected date range | dtp1Instance.getDateRange();
@@ -124,22 +124,16 @@ Name | Return Value | Description | Sample
124124
**setDateRange** | void | Set selected datetime range with Date object argument | dtp1Instance.setDateRange(new Date('2021/09/04'), new Date('2021/09/22'));
125125
**clearDate** | void | clear selected date | dtp1Instance.clearDate();
126126
**convertDateToString** | string | utility method, convert date object to string | const dateStr = dtp1Instance.convertDateToString(date: new Date(), isGregorian: false, format: 'yyyy/MM/dd');
127-
**convertDateToJalali** | MdsPersianDateTimePickerConvertedDateModel | utility method, convert date object to Jalali | const jalaliObj = dtp1Instance.convertDateToJalali(new Date());
127+
**convertDateToJalali** | json | utility method, convert date object to Jalali | const jalaliObj = dtp1Instance.convertDateToJalali(new Date());
128128

129129
<hr>
130130

131131
### Events:
132132

133-
`MD.BootstrapPersianDateTimePicker` uses Bootstrap's popover, and Bootstrap's modals. so you can use `popover` or `modal` events.
133+
`MD.BootstrapPersianDateTimePicker` uses Bootstrap's popover and modals. so you can use `popover` or `modal` events.
134134

135-
https://getbootstrap.com/docs/4.5/components/popovers/#events
136-
https://getbootstrap.com/docs/4.5/components/modal/#events
137-
138-
```javascript
139-
$('#date1').on('hidden.bs.popover', function () {
140-
// do something…
141-
})
142-
```
135+
https://getbootstrap.com/docs/5.1/components/popovers/#events
136+
https://getbootstrap.com/docs/5.1/components/modal/#events
143137

144138
<hr>
145139

0 commit comments

Comments
 (0)