mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
28 lines
567 B
TypeScript
28 lines
567 B
TypeScript
import { fromObject } from "tns-core-modules/data/observable";
|
|
|
|
export function onLoaded(args)
|
|
{
|
|
const page = args.object;
|
|
page.bindingContext = fromObject(
|
|
{
|
|
prefix: "This is a prefix for: ",
|
|
languageData: [
|
|
{
|
|
name: "English",
|
|
},
|
|
{
|
|
name: "Portuguese"
|
|
},
|
|
{
|
|
name: "Spanish"
|
|
},
|
|
{
|
|
name: "Russian"
|
|
},
|
|
{
|
|
name: "Greek"
|
|
}
|
|
]
|
|
});
|
|
}
|