• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NationalBankBelgium / stark / 11178609502

04 Oct 2024 10:49AM UTC coverage: 88.859%. Remained the same
11178609502

Pull #3894

github

web-flow
Merge ff2937f8e into 08060a589
Pull Request #3894: chore(deps-dev): bump puppeteer from 22.10.0 to 23.5.0

1258 of 1525 branches covered (82.49%)

Branch coverage included in aggregate %.

3775 of 4139 relevant lines covered (91.21%)

193.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.0
/packages/stark-ui/src/modules/table/directives/table-expand-detail.directive.ts
1
import { Directive, ElementRef, EmbeddedViewRef, TemplateRef } from "@angular/core";
2

3
/**
4
 * This directive can be used inside <stark-table> if you want rows to be collapsible.
5
 *
6
 * @example
7
 * <stark-table>
8
 *     <ng-container *starkTableExpandDetail="let row">
9
 *             <!-- anything you want to display -->
10
 *     </ng-container>
11
 * </stark-table>
12
 */
13
@Directive({
14
        selector: "[starkTableExpandDetail]"
15
})
16
export class StarkTableExpandDetailDirective extends TemplateRef<any> {
1✔
17
        public readonly elementRef: ElementRef;
18

19
        // IMPORTANT: The "projected" content will be injected in the "template" property of this directive
20
        // This is a workaround to be able to get the "projected" content and to add it as a nested "projected" content of the <stark-table-column>
21
        public constructor(public readonly template: TemplateRef<any>) {
×
22
                super();
×
23
                this.elementRef = this.template.elementRef;
×
24
        }
25

26
        /**
27
         * @ignore
28
         * @internal
29
         */
30
        public createEmbeddedView(context: any): EmbeddedViewRef<any> {
31
                return this.template.createEmbeddedView(context);
×
32
        }
33
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc