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

NationalBankBelgium / stark / 9205125535

23 May 2024 08:55AM UTC coverage: 88.822%. Remained the same
9205125535

Pull #3802

github

web-flow
Merge 72dd2de80 into 59c39b170
Pull Request #3802: chore(deps): bump angular-in-memory-web-api from 0.11.0 to 0.18.0 in /showcase

1260 of 1528 branches covered (82.46%)

Branch coverage included in aggregate %.

3770 of 4135 relevant lines covered (91.17%)

193.15 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