Skip to content

Commit d9bf69f

Browse files
committed
Update Spanish translations with the frame component
1 parent 9bfb09a commit d9bf69f

File tree

1 file changed

+69
-0
lines changed
  • content/docs/es/elements/components

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
title: Frame
3+
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_frame_.frame
4+
contributors: [msaelices]
5+
---
6+
7+
`<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+
new Vue({
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+
<GridLayout columns="*, *">
27+
<Frame col="0"/>
28+
<Frame col="1"/>
29+
</GridLayout>
30+
```
31+
32+
#### Un frame con una página por defecto
33+
34+
```html
35+
<Frame>
36+
<Page>
37+
<ActionBar title="Default Page Title" />
38+
<GridLayout>
39+
<Label text="Default Page Content" />
40+
</GridLayout>
41+
</Page>
42+
</Frame>
43+
```
44+
45+
#### Un frame con una página por defecto de un componente externo
46+
47+
```html
48+
<Frame>
49+
<Page>
50+
<Home />
51+
</Page>
52+
</Frame>
53+
```
54+
55+
```js
56+
import Home from './Home'
57+
58+
export default {
59+
components: {
60+
Home
61+
}
62+
}
63+
```
64+
65+
## Componente Nativo
66+
67+
| Android | iOS |
68+
|---------|-----|
69+
| [`org.nativescript.widgets.ContentLayout`](https://github.com/NativeScript/tns-core-modules-widgets/blob/master/android/widgets/src/main/java/org/nativescript/widgets/ContentLayout.java) | [`UINavigationController`](https://developer.apple.com/documentation/uikit/uinavigationcontroller)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy