Last active
December 14, 2015 13:58
-
-
Save alanleard/5096900 to your computer and use it in GitHub Desktop.
Alloy table open tabs example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.index.open(); | |
function tableClick(e){ | |
$.index.setActiveTab(e.rowData.tab); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Alloy> | |
<TabGroup> | |
<Tab title="Tab 1" icon="KS_nav_ui.png"> | |
<Window title="Tab 1"> | |
<TableView id="table" onClick="tableClick"> | |
<TableViewRow id="row1" tab="1" title="Open Tab 2"/> | |
</TableView> | |
</Window> | |
</Tab> | |
<Tab title="Tab 2" icon="KS_nav_views.png"> | |
<Window title="Tab 2"> | |
<TableView id="table2" onClick="tableClick"> | |
<TableViewRow id="row1" tab="0" title="Open Tab 1"/> | |
</TableView> | |
</Window> | |
</Tab> | |
</TabGroup> | |
</Alloy> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment