mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Add rtl layout support
new option: rtl (bool) it true => add xdsoft_rtl css class to widget
This commit is contained in:
parent
3641f66516
commit
915fe4c13f
@ -443,6 +443,7 @@
|
||||
},
|
||||
value: '',
|
||||
lang: 'en',
|
||||
rtl: false,
|
||||
|
||||
format: 'Y/m/d H:i',
|
||||
formatTime: 'H:i',
|
||||
@ -800,6 +801,9 @@
|
||||
if (options.weeks) {
|
||||
datetimepicker.addClass('xdsoft_showweeks');
|
||||
}
|
||||
if (options.rtl) {
|
||||
datetimepicker.addClass('xdsoft_rtl');
|
||||
}
|
||||
|
||||
datetimepicker.addClass('xdsoft_' + options.theme);
|
||||
datetimepicker.addClass(options.className);
|
||||
|
Loading…
Reference in New Issue
Block a user