-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsplit-view-primary.component.ts
More file actions
57 lines (53 loc) · 3.16 KB
/
split-view-primary.component.ts
File metadata and controls
57 lines (53 loc) · 3.16 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { Component, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptCommonModule } from '@nativescript/angular';
@Component({
selector: 'ns-split-view-primary',
template: `
<ActionBar title="Primary" flat="true"></ActionBar>
<GridLayout rows="auto,*" class="h-full bg-slate-50 dark:bg-slate-950">
<StackLayout row="0" class="px-5 pt-5 pb-4 border-b border-slate-200 dark:border-slate-800">
<Label text="Split View" class="text-xl font-semibold text-slate-900 dark:text-slate-100"></Label>
<Label text="Primary" class="text-sm text-slate-500 dark:text-slate-400"></Label>
</StackLayout>
<ScrollView row="1">
<StackLayout class="p-5">
<GridLayout columns="*,auto" class="mb-4">
<Label col="0" text="Navigation" class="text-base font-semibold text-slate-900 dark:text-slate-100"></Label>
<Label col="1" text="4 items" class="text-xs text-slate-500 dark:text-slate-400"></Label>
</GridLayout>
<StackLayout class="rounded-2xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900">
<GridLayout rows="auto" columns="auto,*" class="px-4 py-3 border-b border-slate-200 dark:border-slate-800">
<Label col="0" text="•" class="text-lg text-slate-500 dark:text-slate-400"></Label>
<Label col="1" text="Overview" class="text-base text-slate-900 dark:text-slate-100"></Label>
</GridLayout>
<GridLayout rows="auto" columns="auto,*" class="px-4 py-3 border-b border-slate-200 dark:border-slate-800">
<Label col="0" text="•" class="text-lg text-slate-500 dark:text-slate-400"></Label>
<Label col="1" text="Accounts" class="text-base text-slate-900 dark:text-slate-100"></Label>
</GridLayout>
<GridLayout rows="auto" columns="auto,*" class="px-4 py-3 border-b border-slate-200 dark:border-slate-800">
<Label col="0" text="•" class="text-lg text-slate-500 dark:text-slate-400"></Label>
<Label col="1" text="Reports" class="text-base text-slate-900 dark:text-slate-100"></Label>
</GridLayout>
<GridLayout rows="auto" columns="auto,*" class="px-4 py-3">
<Label col="0" text="•" class="text-lg text-slate-500 dark:text-slate-400"></Label>
<Label col="1" text="Settings" class="text-base text-slate-900 dark:text-slate-100"></Label>
</GridLayout>
</StackLayout>
<StackLayout
class="mt-5 rounded-2xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 p-4"
>
<Label text="Tip" class="text-xs font-semibold text-slate-500 dark:text-slate-400"></Label>
<Label
text="On iPad, keep Primary lightweight. Use Secondary for details and Inspector for properties."
class="mt-1 text-sm text-slate-700 dark:text-slate-200 leading-[3]"
textWrap="true"
></Label>
</StackLayout>
</StackLayout>
</ScrollView>
</GridLayout>
`,
imports: [NativeScriptCommonModule],
schemas: [NO_ERRORS_SCHEMA],
})
export class SplitViewPrimaryComponent {}