You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`<Frame>` es un componente de UI usado para mostrar elementos [`<Page>`](/en/docs/elements/components/page). Cada app necesita al menos un elemento `<Frame>`, que normalmente se establece como elemento raíz.
8
+
9
+
---
10
+
11
+
#### Un único elemento Frame raíz
12
+
13
+
Si estás migrando desde nativescript 3.x y quieres preservar el antiguo comportamiento, el siguiente fragmento de código en tu fichero de entrada JS creará un elemento raíz de tipo frame y renderizará tu página por defecto.
14
+
15
+
```js
16
+
newVue({
17
+
render:h=>h('Frame', [ h(HomePageComponent) ])
18
+
})
19
+
```
20
+
21
+
#### Múltiples Frames
22
+
23
+
Si necesitas crear múltiples frames, tienes que encapsularlos en un layout, por ejemplo si quieres tener 2 frames lado a lado
24
+
25
+
```html
26
+
<GridLayoutcolumns="*, *">
27
+
<Framecol="0"/>
28
+
<Framecol="1"/>
29
+
</GridLayout>
30
+
```
31
+
32
+
#### Un frame con una página por defecto
33
+
34
+
```html
35
+
<Frame>
36
+
<Page>
37
+
<ActionBartitle="Default Page Title" />
38
+
<GridLayout>
39
+
<Labeltext="Default Page Content" />
40
+
</GridLayout>
41
+
</Page>
42
+
</Frame>
43
+
```
44
+
45
+
#### Un frame con una página por defecto de un componente externo
0 commit comments