mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
26 lines
389 B
TypeScript
26 lines
389 B
TypeScript
import { fromObject } from '@nativescript/core/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',
|
|
},
|
|
],
|
|
});
|
|
}
|