-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gantt): add scrollbar component(#TINFR-605) (#484)
* feat(gantt): add scrollbar component(#TINFR-605) * feat(gantt): add scrollbar component(#TINFR-605)
- Loading branch information
Showing
6 changed files
with
44 additions
and
16 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
packages/gantt/src/components/scrollbar/scrollbar.component.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,11 @@ | ||
<div | ||
class="gantt-scrollbar" | ||
[ngClass]="{ 'gantt-scrollbar-bg': hasFooter }" | ||
[style.height.px]="ganttRoot?.horizontalScrollbarHeight + 1" | ||
[style.right.px]="ganttRoot?.verticalScrollbarWidth" | ||
> | ||
<div class="gantt-table-scrollbar" [class.with-scrollbar]="ganttRoot?.horizontalScrollbarHeight" [style.width.px]="tableWidth"></div> | ||
<div class="gantt-main-scrollbar"> | ||
<div class="h-100" [style.width.px]="ganttRoot['view']?.width"></div> | ||
</div> | ||
</div> |
20 changes: 20 additions & 0 deletions
20
packages/gantt/src/components/scrollbar/scrollbar.component.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,20 @@ | ||
import { Component, Inject, Input } from '@angular/core'; | ||
import { GANTT_UPPER_TOKEN, GanttUpper } from '../../gantt-upper'; | ||
import { NgClass } from '@angular/common'; | ||
import { NgxGanttRootComponent } from '../../root.component'; | ||
|
||
@Component({ | ||
selector: 'gantt-scrollbar', | ||
templateUrl: `./scrollbar.component.html`, | ||
imports: [NgClass], | ||
standalone: true | ||
}) | ||
export class GanttScrollbarComponent { | ||
@Input() hasFooter: boolean = false; | ||
|
||
@Input() tableWidth: number; | ||
|
||
@Input() ganttRoot: NgxGanttRootComponent; | ||
|
||
constructor(@Inject(GANTT_UPPER_TOKEN) public ganttUpper: GanttUpper) {} | ||
} |
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
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