You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**updateOption** | void | update one option of date picker | dtp1Instance.updateOption('isGregorian', false)
117
117
**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'));
119
119
**getText** | string | Get selected date text | const txt = dtp1Instance.getText()
120
120
**getDate** | Date | Get selected date | const dateObj = dtp1Instance.getDate()
121
121
**getDateRange** | [fromDate, toDate]: Date[] | Get selected date range | dtp1Instance.getDateRange();
@@ -124,22 +124,16 @@ Name | Return Value | Description | Sample
124
124
**setDateRange** | void | Set selected datetime range with Date object argument | dtp1Instance.setDateRange(new Date('2021/09/04'), new Date('2021/09/22'));
125
125
**clearDate** | void | clear selected date | dtp1Instance.clearDate();
126
126
**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());
128
128
129
129
<hr>
130
130
131
131
### Events:
132
132
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.
0 commit comments