Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 3155e2f

Browse files
committed
datepicker-toggle , if you want to set datepicker always visible in page, see readme attributes options
1 parent 05d2c6f commit 3155e2f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ date-set-hidden="" | String(Boolean) | false | Set the default date to be shown
8484
date-disabled-dates="" | String([Date(), Date(), ...]) | false | Disable specific dates using an _Array_ of dates
8585
date-refocus="" | String(Boolean) | false | Set the datepicker to re-focus the input after selecting a date
8686
date-typer="" | String(Boolean) | false | Set the datepicker to update calendar date when user is typing a date
87+
date-toggle="" | String(Boolean) | true | Set the datepicker always visible in page
8788

8889
##Options
8990
Angular datepicker allows you to use some options via `attribute` data

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
</div>
2727
<div class="col3">
2828
<div class="datepicker"
29+
datepicker-toggle="false"
2930
date-format="MMMM d, y"
3031
date-set="2015/11/26"
3132
date-min-limit="2014/08/07"
@@ -37,6 +38,7 @@
3738
<input ng-model="date2" type="text" class="angular-datepicker-input"/>
3839
</div>
3940
Date 2 is: {{date2}}
41+
<input ng-model="date4" type="text" class="angular-datepicker-input"/>
4042
</div>
4143
<div class="col3">
4244
<datepicker>

src/css/angular-datepicker.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,7 @@ datepicker, .datepicker, [datepicker],
197197
background: rgba(25,2,0,0.02);
198198
cursor: default;
199199
}
200+
/*options*/
201+
[datepicker-toggle="false"] > ._720kb-datepicker-calendar{
202+
visibility:visible;
203+
}

0 commit comments

Comments
 (0)