sass-references/angular-material/material/datepicker/datepicker-toggle.html

26 lines
731 B
HTML
Raw Normal View History

2024-12-06 10:42:08 +08:00
<button
#button
mat-icon-button
type="button"
[attr.aria-haspopup]="datepicker ? 'dialog' : null"
[attr.aria-label]="ariaLabel || _intl.openCalendarLabel"
[attr.tabindex]="disabled ? -1 : tabIndex"
[disabled]="disabled"
[disableRipple]="disableRipple">
@if (!_customIcon) {
<svg
class="mat-datepicker-toggle-default-icon"
viewBox="0 0 24 24"
width="24px"
height="24px"
fill="currentColor"
focusable="false"
aria-hidden="true">
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>
</svg>
}
<ng-content select="[matDatepickerToggleIcon]"></ng-content>
</button>