-
Notifications
You must be signed in to change notification settings - Fork 22
/
flagged.ts
executable file
·43 lines (41 loc) · 939 Bytes
/
flagged.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Component } from '@angular/core';
const config = {
selector: 'cookbook-item-example-flagged',
template: `<kirby-item>
<div slot="outside">
<div class="flag success"></div>
<div class="flag warning"></div>
</div>
<kirby-label>
<h3 class="kirby-text-bold">Title</h3>
<p detail>Detail</p>
</kirby-label>
<kirby-flag slot="end" themeColor="success">
<data value="60.0">60</data>
</kirby-flag>
</kirby-item>`,
styles: [
`.flag {
width: 8px;
height: 8px;
border-radius:50%;
}`,
`.flag.success {
background: var(--kirby-success);
}`,
`.flag.warning {
background: var(--kirby-warning);
}`,
`.flag:not(:last-child) {
margin-bottom: 2px;
}`,
],
};
@Component({
selector: config.selector,
template: config.template,
styles: config.styles,
})
export class ItemExampleFlaggedComponent {
template: string = config.template;
}