Skip to content

Commit b83bf44

Browse files
committed
Merge pull request uxsolutions#1281 from acrobat/missing-examples
Added some missing examples
2 parents 195bd71 + 475d84e commit b83bf44

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.htm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,14 @@ <h2>bootstrap-datepicker sandbox <small>&alpha;lph&alpha;</small></h2>
327327
<input id="datesDisabled" name="datesDisabled" type="checkbox">
328328
datesDisabled
329329
</label>
330+
<label for="toggleActive" class="inline checkbox">
331+
<input id="toggleActive" name="toggleActive" type="checkbox">
332+
Toggle Active
333+
</label>
334+
<label for="defaultViewDate" class="inline checkbox">
335+
<input id="defaultViewDate" name="defaultViewDate" type="checkbox">
336+
DefaultViewDate option
337+
</label>
330338

331339
<br></br>
332340

@@ -379,6 +387,7 @@ <h2>bootstrap-datepicker sandbox <small>&alpha;lph&alpha;</small></h2>
379387
var js = "$('#sandbox-container "+selector+"').datepicker({\n",
380388
val;
381389
for (var opt in $.extend({}, defaults, values)){
390+
console.log(opt);
382391
if (values[opt] != defaults[opt]){
383392
val = values[opt];
384393
if (opt == 'daysOfWeekDisabled') val = '"'+val+'"'
@@ -410,6 +419,7 @@ <h2>bootstrap-datepicker sandbox <small>&alpha;lph&alpha;</small></h2>
410419
}
411420
val = "['"+month+"/06/"+date.getFullYear()+"', '"+month+"/21/"+date.getFullYear()+"']";
412421
}
422+
else if (opt === 'defaultViewDate') val = '{ year: 1977, month: 04, day: 25 }';
413423
else if (val == 'on' || val == 'true') val = 'true';
414424
else if (val === void 0 || val == 'false') val = 'false';
415425
else if (parseInt(val) == val) val = val;

0 commit comments

Comments
 (0)