Created
May 2, 2016 05:55
-
-
Save mdk-aza/85ca66808fc57e21e5470f468dd7a8d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.full button span { | |
background-color: limegreen; | |
border-radius: 32px; | |
color: black; | |
} | |
.partially button span { | |
background-color: orange; | |
border-radius: 32px; | |
color: black; | |
} | |
</style> | |
<div> | |
<pre class="card card-block card-header">Selected date is: <em *ngIf="dt">{{ getDate() | date:'fullDate'}}</em></pre> | |
<h4>Inline</h4> | |
<div style="display:inline-block; min-height:290px;"> | |
<datepicker [(ngModel)]="dt" [minDate]="minDate" [showWeeks]="true"></datepicker> | |
</div> | |
<hr /> | |
<button type="button" class="btn btn-sm btn-info" (click)="today()">Today</button> | |
<button type="button" class="btn btn-sm btn-default btn-secondary" (click)="d20090824();">2009-08-24</button> | |
<button type="button" class="btn btn-sm btn-danger" (click)="clear()">Clear</button> | |
<button type="button" class="btn btn-sm btn-default btn-secondary" (click)="toggleMin()" tooltip="After today restriction">Min date</button> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment