mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
29 lines
872 B
TypeScript
29 lines
872 B
TypeScript
/**
|
|
* @module "ui/builder"
|
|
*/ /** */
|
|
|
|
import { View, Template, KeyedTemplate } from "../core/view";
|
|
import { Page } from "../page";
|
|
import { NavigationEntry } from "../frame";
|
|
|
|
/**
|
|
* Deprecated. Use createViewFromEntry instead.
|
|
* @param moduleNamePath
|
|
* @param fileName
|
|
* @param moduleExports
|
|
*/
|
|
export function loadPage(moduleNamePath: string, fileName: string, moduleExports?: any): Page;
|
|
export function createViewFromEntry(entry: NavigationEntry): View;
|
|
export function load(fileName: string, exports?: any): View;
|
|
export function load(options: LoadOptions): View;
|
|
export function parse(value: string | Template, exports?: any): View;
|
|
export function parseMultipleTemplates(value: string, exports?: any): Array<KeyedTemplate>;
|
|
|
|
export interface LoadOptions {
|
|
path: string;
|
|
name: string;
|
|
attributes?: any;
|
|
exports?: any;
|
|
page?: Page;
|
|
}
|