Browse Source

Added missing feature

pull/15806/head
Salih 4 years ago
parent
commit
2c52ba830a
  1. 10
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/dom-event-handlers.js

10
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/dom-event-handlers.js

@ -247,6 +247,10 @@
if (options.readonly) { if (options.readonly) {
$dateInput.attr('readonly', true) $dateInput.attr('readonly', true)
} }
if(options.placeholder) {
$dateInput.attr('placeholder', options.placeholder)
}
if (options.size) { if (options.size) {
switch (options.size) { switch (options.size) {
@ -269,11 +273,17 @@
if (options.openButton !== false) { if (options.openButton !== false) {
var $openButton = $('<button type="button" class="btn btn-outline-secondary" tabindex="-1" data-type="open"><i class="fa fa-calendar"></i></button>'); var $openButton = $('<button type="button" class="btn btn-outline-secondary" tabindex="-1" data-type="open"><i class="fa fa-calendar"></i></button>');
$inputGroup.append($openButton); $inputGroup.append($openButton);
if(options.disabled) {
$openButton.attr('disabled', 'disabled')
}
} }
if (options.clearButton !== false) { if (options.clearButton !== false) {
var $clearButton = $('<button type="button" class="btn btn-outline-secondary" tabindex="-1" data-type="clear"><i class="fa fa-times"></i></button>'); var $clearButton = $('<button type="button" class="btn btn-outline-secondary" tabindex="-1" data-type="clear"><i class="fa fa-times"></i></button>');
$inputGroup.append($clearButton); $inputGroup.append($clearButton);
if(options.disabled) {
$clearButton.attr('disabled', 'disabled')
}
} }
$datePicker.append($inputGroup); $datePicker.append($inputGroup);

Loading…
Cancel
Save