Skip to content

Instantly share code, notes, and snippets.

@davidecassenti
Created February 17, 2014 15:21

Revisions

  1. davidecassenti revised this gist Feb 19, 2014. 1 changed file with 21 additions and 21 deletions.
    42 changes: 21 additions & 21 deletions index.xml
    Original file line number Diff line number Diff line change
    @@ -1,23 +1,23 @@
    <Alloy>
    <TabGroup>
    <Tab title="Tab 1" icon="KS_nav_ui.png">
    <SplitWindow id="splitWin" platform="ios" formFactor="tablet">
    <NavigationWindow id="master_win">
    <Window title="Master 1">
    <Label onClick="openMaster">Master</Label>
    </Window>
    </NavigationWindow>
    <NavigationWindow id="detail_win">
    <Window title="Detail 1">
    <Label onClick="openDetail">Detail</Label>
    </Window>
    </NavigationWindow>
    </SplitWindow>
    </Tab>
    <Tab title="Tab 2" icon="KS_nav_views.png">
    <Window title="Tab 2">
    <Label>I am Window 2</Label>
    </Window>
    </Tab>
    </TabGroup>
    <TabGroup>
    <Tab title="Tab 1" icon="KS_nav_ui.png">
    <SplitWindow id="splitWin" platform="ios" formFactor="tablet">
    <NavigationWindow id="master_win">
    <Window title="Master 1">
    <Label onClick="openMaster">Master</Label>
    </Window>
    </NavigationWindow>
    <NavigationWindow id="detail_win">
    <Window title="Detail 1">
    <Label onClick="openDetail">Detail</Label>
    </Window>
    </NavigationWindow>
    </SplitWindow>
    </Tab>
    <Tab title="Tab 2" icon="KS_nav_views.png">
    <Window title="Tab 2">
    <Label>I am Window 2</Label>
    </Window>
    </Tab>
    </TabGroup>
    </Alloy>
  2. davidecassenti revised this gist Feb 17, 2014. 2 changed files with 10 additions and 4 deletions.
    10 changes: 8 additions & 2 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,16 @@
    function openMaster() {
    var win = Ti.UI.createWindow({backgroundColor: 'red'});
    var win = Ti.UI.createWindow({
    title: "Master 2",
    backgroundColor: 'red'
    });
    $.master_win.openWindow(win);
    }

    function openDetail() {
    var win = Ti.UI.createWindow({backgroundColor: 'green'});
    var win = Ti.UI.createWindow({
    title: "Detail 2",
    backgroundColor: 'green'
    });
    $.detail_win.openWindow(win);
    }

    4 changes: 2 additions & 2 deletions index.xml
    Original file line number Diff line number Diff line change
    @@ -3,12 +3,12 @@
    <Tab title="Tab 1" icon="KS_nav_ui.png">
    <SplitWindow id="splitWin" platform="ios" formFactor="tablet">
    <NavigationWindow id="master_win">
    <Window>
    <Window title="Master 1">
    <Label onClick="openMaster">Master</Label>
    </Window>
    </NavigationWindow>
    <NavigationWindow id="detail_win">
    <Window>
    <Window title="Detail 1">
    <Label onClick="openDetail">Detail</Label>
    </Window>
    </NavigationWindow>
  3. davidecassenti created this gist Feb 17, 2014.
    11 changes: 11 additions & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    function openMaster() {
    var win = Ti.UI.createWindow({backgroundColor: 'red'});
    $.master_win.openWindow(win);
    }

    function openDetail() {
    var win = Ti.UI.createWindow({backgroundColor: 'green'});
    $.detail_win.openWindow(win);
    }

    $.index.open();
    6 changes: 6 additions & 0 deletions index.tss
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    "Window": {
    backgroundColor:"white"
    },
    "Label": {
    color: "#000"
    }
    23 changes: 23 additions & 0 deletions index.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    <Alloy>
    <TabGroup>
    <Tab title="Tab 1" icon="KS_nav_ui.png">
    <SplitWindow id="splitWin" platform="ios" formFactor="tablet">
    <NavigationWindow id="master_win">
    <Window>
    <Label onClick="openMaster">Master</Label>
    </Window>
    </NavigationWindow>
    <NavigationWindow id="detail_win">
    <Window>
    <Label onClick="openDetail">Detail</Label>
    </Window>
    </NavigationWindow>
    </SplitWindow>
    </Tab>
    <Tab title="Tab 2" icon="KS_nav_views.png">
    <Window title="Tab 2">
    <Label>I am Window 2</Label>
    </Window>
    </Tab>
    </TabGroup>
    </Alloy>