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:
@@ -4,4 +4,4 @@
|
||||
|
||||
stack-layout {
|
||||
background-color: green;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,4 +11,4 @@
|
||||
<Unicorn backgroundColor="pink" />
|
||||
<Label text="Modal Page" />
|
||||
</StackLayout>
|
||||
</Page>
|
||||
</Page>
|
||||
|
||||
@@ -85,4 +85,4 @@
|
||||
</TabViewItem>
|
||||
</TabView.items>
|
||||
</TabView>
|
||||
</Page>
|
||||
</Page>
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
{ "name" : "MyControl",
|
||||
"main" : "MyControl.js" }
|
||||
{
|
||||
"name": "MyControl",
|
||||
"main": "MyControl.js"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<StackLayout xmlns:customControls="xml-declaration/mymodule" class="MySecondCustomStackLayout">
|
||||
<Label id="Label1" text="mymodulewithxml" />
|
||||
<Button text="Click!" tap="buttonTap2" />
|
||||
<Button text="Click!" tap="buttonTap2" />
|
||||
</StackLayout>
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
</TabViewItem>
|
||||
</TabView.items>
|
||||
</TabView>
|
||||
</Page>
|
||||
</Page>
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
{ "name" : "MyControl",
|
||||
"main" : "MyControl.js" }
|
||||
{
|
||||
"name": "MyControl",
|
||||
"main": "MyControl.js"
|
||||
}
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
{ "name" : "xml-declaration",
|
||||
"main" : "app.js" }
|
||||
{
|
||||
"name": "xml-declaration",
|
||||
"main": "app.js"
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -832,4 +832,4 @@
|
||||
<xs:element name="WrapLayout" type="WrapLayout"/>
|
||||
</xs:choice>
|
||||
</xs:group>
|
||||
</xs:schema>
|
||||
</xs:schema>
|
||||
|
||||
Reference in New Issue
Block a user