-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(addon-mobile): possibility drop mobile calendar header
- Loading branch information
Showing
6 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
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
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
6 changes: 6 additions & 0 deletions
6
projects/demo/src/modules/components/mobile-calendar/examples/6/index.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="example"> | ||
<tui-mobile-calendar | ||
[max]="max" | ||
[min]="min" | ||
/> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
projects/demo/src/modules/components/mobile-calendar/examples/6/index.less
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.example { | ||
height: 35rem; | ||
} |
26 changes: 26 additions & 0 deletions
26
projects/demo/src/modules/components/mobile-calendar/examples/6/index.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiMobileCalendar} from '@taiga-ui/addon-mobile'; | ||
import {TuiDay} from '@taiga-ui/cdk'; | ||
import {TUI_CHOOSE_DAY_OR_RANGE_TEXTS} from '@taiga-ui/kit'; | ||
import {of} from 'rxjs'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [TuiMobileCalendar], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
providers: [ | ||
{ | ||
provide: TUI_CHOOSE_DAY_OR_RANGE_TEXTS, | ||
useValue: null, | ||
}, | ||
], | ||
}) | ||
export default class Example { | ||
protected min = new TuiDay(new Date().getFullYear(), new Date().getMonth(), 1); | ||
protected max = new TuiDay(new Date().getFullYear(), new Date().getMonth(), 10); | ||
} |
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