What value should be used for jQuery datepicker attribute buttonImage?
I would like to use the Bootstrap calendar icon using jQuery datepicker. I can use the icon image on the html page with the link:
<i class=icon-calendar></i>
When I use angular-ui wrapper ui-dateto wrap jQuery datepicker:
<div class="control-group">
<label class="control-label" for="startDate">Start Date</label>
<div class="controls">
<input class="span2" id="startDate" type="text"
data-ng-model="formModel.startDate"
data-ui-date="formModel.datePickerOptions"
data-ng-change="formModel.setAdjustmentDate()"
required >
</div>
</div>
with a controller defining datepicker parameters as follows:
formModel.datePickerOptions = {
dateFormat: 'yy-M-dd'
,changeMonth: true
,changeYear: true
,buttonImage: '<i class=icon-calendar></i>'
,buttonImageOnly: true
,showOn: "button"
};
What value should I embed in buttonImage?
Datpicker expects the image URL to look like this { buttonImage: "/images/datepicker.gif" }.
source
share