mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
style(tests): format all files
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
<tc:TemplateView.template>
|
||||
<tc:TemplateView text="Click!" test="test" />
|
||||
</tc:TemplateView.template>
|
||||
</tc:TemplateView>
|
||||
</tc:TemplateView>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Our unit test will set this function and expect it to be set as a handler on a View in the XML.
|
||||
export interface ITestEvent {
|
||||
test: (args: any) => void;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,14 +10,14 @@ export class TemplateView extends LayoutBase {
|
||||
public template: string;
|
||||
|
||||
public static testEvent: string = "test";
|
||||
|
||||
|
||||
public parseTemplate() {
|
||||
this.addChild(parse(this.template));
|
||||
}
|
||||
}
|
||||
|
||||
export const templateProperty = new Property<TemplateView, string>({
|
||||
name: "template",
|
||||
affectsLayout: true
|
||||
});
|
||||
name: "template",
|
||||
affectsLayout: true
|
||||
});
|
||||
templateProperty.register(TemplateView);
|
||||
|
||||
Reference in New Issue
Block a user