MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / RootLayoutModel

Class RootLayoutModel

apps/toolbox/src/pages/root-layout.ts:8–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6}
7
8export class RootLayoutModel extends Observable {
9 popupViews: { view: View; options: RootLayoutOptions; extra?: any }[] = [
10 {
11 view: this.getPopup('#EA5936', 110, -30),
12 options: {
13 shadeCover: {
14 color: 'linear-gradient(to bottom, red, blue)',
15 opacity: 0.7,
16 tapToClose: true,
17 },
18 animation: {
19 enterFrom: {
20 opacity: 0,
21 translateY: 500,
22 duration: 500,
23 },
24 exitTo: {
25 opacity: 0,
26 duration: 300,
27 },
28 },
29 },
30 extra: {
31 customExitAnimation: {
32 opacity: 0,
33 translate: { x: 0, y: -500 },
34 },
35 },
36 },
37 {
38 view: this.getPopup('#232652', 110, 0),
39 options: {
40 shadeCover: {
41 color: 'pink',
42 opacity: 0.7,
43 tapToClose: false,
44 animation: {
45 exitTo: {
46 scaleX: 0,
47 },
48 },
49 },
50 },
51 },
52 {
53 view: this.getPopup('#E1E4E8', 110, 30),
54 options: {
55 shadeCover: {
56 color: '#ffffdd',
57 opacity: 0.5,
58 tapToClose: true,
59 ignoreShadeRestore: true,
60 animation: {
61 enterFrom: {
62 translateX: -1000,
63 duration: 500,
64 },
65 exitTo: {

Callers

nothing calls this directly

Calls 1

getPopupMethod · 0.95

Tested by

no test coverage detected