|
3 | 3 | <ActionBar title="Dev Toolbox" icon="" class="action-bar"> |
4 | 4 | </ActionBar> |
5 | 5 | </Page.actionBar> |
6 | | - <ScrollView> |
7 | | - <StackLayout class="p-t-20 p-x-20"> |
| 6 | + |
| 7 | + <GridLayout rows="2*, *"> |
| 8 | + <!-- background color transparent here to hide children overflow --> |
| 9 | + <AbsoluteLayout row="0" backgroundColor="transparent"> |
| 10 | + <!-- Root layout demo --> |
| 11 | + <RootLayout height="100%" width="100%"> |
| 12 | + <GridLayout height="100%" backgroundColor="#232652"> |
| 13 | + <Label verticalAlignment="center" textAlignment="center" fontWeight="bold" color="#fff" text="ROOT LAYOUT CONTENT"></Label> |
| 14 | + </GridLayout> |
| 15 | + </RootLayout> |
| 16 | + </AbsoluteLayout> |
8 | 17 |
|
9 | | - <!-- <Button text="Button with html boxShadow" tap="{{ onTap }}" height="50" class="btn btn-primary btn-active" boxShadow="5 5 10 navy"/> |
| 18 | + <!-- Root layout controls --> |
| 19 | + <StackLayout row="1"> |
| 20 | + <ScrollView height="100%"> |
| 21 | + <StackLayout class="p-15"> |
| 22 | + <Label color="#b4b6b9" fontSize="25" fontWeight="bold" text="ORANGE"></Label> |
| 23 | + <FlexboxLayout flexDirection="row" justifyContent="space-between"> |
| 24 | + <Button flexGrow="1" text="open" tap="{{ open }}" popupIndex="0" class="btn btn-primary btn-active"/> |
| 25 | + <Button flexGrow="1" text="front" tap="{{ bringToFront }}" popupIndex="0" class="btn btn-primary btn-active"/> |
| 26 | + <Button flexGrow="1" text="close" tap="{{ close }}" popupIndex="0" class="btn btn-primary btn-active"/> |
| 27 | + </FlexboxLayout> |
10 | 28 |
|
11 | | - <Button text="Button with css boxShadow (rgba)" tap="{{ onTap }}" height="50" marginTop="50" class="btn btn-primary btn-active"/> |
12 | | - |
13 | | - <Button text="Button with boxShadow 3 props" tap="{{ onTap }}" height="50" marginTop="50" boxShadow="5 5 navy" class="btn btn-primary btn-active"/> |
14 | | - <Button text="Button with boxShadow 4 props" tap="{{ onTap }}" height="50" marginTop="50" boxShadow="5 5 10 navy" class="btn btn-primary btn-active"/> |
15 | | - <Button text="Button with boxShadow 5 props" tap="{{ onTap }}" height="50" marginTop="50" boxShadow="5 5 10 10 navy" class="btn btn-primary btn-active"/> |
| 29 | + <Label color="#b4b6b9" fontSize="25" fontWeight="bold" text="NAVY"></Label> |
| 30 | + <FlexboxLayout flexDirection="row"> |
| 31 | + <Button flexGrow="1" text="open" tap="{{ open }}" popupIndex="1" class="btn btn-primary btn-active"/> |
| 32 | + <Button flexGrow="1" text="front" tap="{{ bringToFront }}" popupIndex="1" class="btn btn-primary btn-active"/> |
| 33 | + <Button flexGrow="1" text="close" tap="{{ close }}" popupIndex="1" class="btn btn-primary btn-active"/> |
| 34 | + </FlexboxLayout> |
16 | 35 |
|
17 | | - <StackLayout boxShadow="10 10 rgba(0,0,0,1)" marginTop="50"> |
18 | | - <Button text="Button with css boxShadow" tap="{{ onTap }}" height="50" borderRadius="10"/> |
19 | | - </StackLayout> --> |
| 36 | + <Label color="#b4b6b9" fontSize="25" fontWeight="bold" text="GRAY"></Label> |
| 37 | + <FlexboxLayout flexDirection="row"> |
| 38 | + <Button flexGrow="1" text="open" tap="{{ open }}" popupIndex="2" class="btn btn-primary btn-active"/> |
| 39 | + <Button flexGrow="1" text="front" tap="{{ bringToFront }}" popupIndex="2" class="btn btn-primary btn-active"/> |
| 40 | + <Button flexGrow="1" text="close" tap="{{ close }}" popupIndex="2" class="btn btn-primary btn-active"/> |
| 41 | + </FlexboxLayout> |
| 42 | + |
| 43 | + <!-- <Button text="Button with html boxShadow" tap="{{ onTap }}" height="50" class="btn btn-primary btn-active" boxShadow="5 5 10 navy"/> |
20 | 44 |
|
21 | | - <!-- TODO: if backgroundColor is not set, it won't call background.ios.ts hence not applying the boxShadow --> |
22 | | - <!-- <StackLayout boxShadow="5 5 10 10 red" height="100" backgroundColor="transparent" padding="10" margin="20"> |
23 | | - <Label text="StackLayout with transparent background"></Label> |
24 | | - </StackLayout> --> |
| 45 | + <Button text="Button with css boxShadow (rgba)" tap="{{ onTap }}" height="50" marginTop="50" class="btn btn-primary btn-active"/> |
25 | 46 |
|
26 | | - <GridLayout boxShadow="10 -10 10 10 rgba(0,0,0,0.5)" height="100" backgroundColor="lightblue" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
27 | | - <Label text="GridLayout"></Label> |
28 | | - </GridLayout> |
| 47 | + <Button text="Button with boxShadow 3 props" tap="{{ onTap }}" height="50" marginTop="50" boxShadow="5 5 navy" class="btn btn-primary btn-active"/> |
| 48 | + <Button text="Button with boxShadow 4 props" tap="{{ onTap }}" height="50" marginTop="50" boxShadow="5 5 10 navy" class="btn btn-primary btn-active"/> |
| 49 | + <Button text="Button with boxShadow 5 props" tap="{{ onTap }}" height="50" marginTop="50" boxShadow="5 5 10 10 navy" class="btn btn-primary btn-active"/> |
| 50 | +
|
| 51 | + <StackLayout boxShadow="10 10 rgba(0,0,0,1)" marginTop="50"> |
| 52 | + <Button text="Button with css boxShadow" tap="{{ onTap }}" height="50" borderRadius="10"/> |
| 53 | + </StackLayout> --> |
| 54 | + |
| 55 | + <!-- TODO: if backgroundColor is not set, it won't call background.ios.ts hence not applying the boxShadow --> |
| 56 | + <!-- <StackLayout boxShadow="5 5 10 10 red" height="100" backgroundColor="transparent" padding="10" margin="20"> |
| 57 | + <Label text="StackLayout with transparent background"></Label> |
| 58 | + </StackLayout> --> |
| 59 | + |
| 60 | + <GridLayout boxShadow="10 -10 10 10 rgba(0,0,0,0.5)" height="100" backgroundColor="lightblue" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
| 61 | + <Label text="GridLayout"></Label> |
| 62 | + </GridLayout> |
29 | 63 |
|
30 | | - <StackLayout boxShadow="5 10 10 20 #000" height="100" backgroundColor="lightblue" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
31 | | - <Label text="StackLayout"></Label> |
32 | | - </StackLayout> |
| 64 | + <StackLayout boxShadow="5 10 10 20 #000" height="100" backgroundColor="lightblue" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
| 65 | + <Label text="StackLayout"></Label> |
| 66 | + </StackLayout> |
33 | 67 |
|
34 | | - <AbsoluteLayout boxShadow="5 15 10 20 green" height="100" backgroundColor="lightblue" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
35 | | - <Label text="AbsoluteLayout"></Label> |
36 | | - </AbsoluteLayout> |
| 68 | + <AbsoluteLayout boxShadow="5 15 10 20 green" height="100" backgroundColor="lightblue" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
| 69 | + <Label text="AbsoluteLayout"></Label> |
| 70 | + </AbsoluteLayout> |
37 | 71 |
|
38 | | - <!-- note: the 3rd number in box shadow is currently being ignored, only the 1st, 2nd, and 4th, and color are being used--> |
39 | | - <FlexboxLayout boxShadow="0 0 10 25 red" height="100" backgroundColor="lightblue" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
40 | | - <Label text="FlexboxLayout"></Label> |
41 | | - </FlexboxLayout> |
| 72 | + <!-- note: the 3rd number in box shadow is currently being ignored, only the 1st, 2nd, and 4th, and color are being used--> |
| 73 | + <FlexboxLayout boxShadow="0 0 10 25 red" height="100" backgroundColor="lightblue" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
| 74 | + <Label text="FlexboxLayout"></Label> |
| 75 | + </FlexboxLayout> |
42 | 76 |
|
43 | | - <FlexboxLayout boxShadow="15 10 10 20 #000" height="100" backgroundColor="transparent" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
44 | | - <Label text="FlexboxLayout (transparent background)"></Label> |
45 | | - </FlexboxLayout> |
| 77 | + <FlexboxLayout boxShadow="15 10 10 20 #000" height="100" backgroundColor="transparent" padding="10" margin="20" tap="{{ toggleAnimation }}"> |
| 78 | + <Label text="FlexboxLayout (transparent background)"></Label> |
| 79 | + </FlexboxLayout> |
46 | 80 |
|
47 | | - <Button marginTop="30" boxShadow="0 0 10 8 #000" backgroundColor="transparent" text="button" padding="20"></Button> |
48 | | - |
49 | | - </StackLayout> |
50 | | - </ScrollView> |
| 81 | + <Button marginTop="30" boxShadow="0 0 10 8 #000" backgroundColor="transparent" text="button" padding="20"></Button> |
| 82 | + </StackLayout> |
| 83 | + </ScrollView> |
| 84 | + </StackLayout> |
| 85 | + </GridLayout> |
51 | 86 | </Page> |
0 commit comments