[ALOY-1713] Alloy Alloy widgets to be used as primary element for XML view
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2019-12-18T15:10:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | alloy, griffin-app, widgets, xml |
Reporter | Brenton House |
Assignee | Brenton House |
Created | 2019-12-17T23:58:16.000+0000 |
Updated | 2019-12-18T15:10:17.000+0000 |
Description
Would be nice to be able to have a index.xml view like this:
<Alloy>
<Widget src="test" />
</Alloy>
which uses a widget.xml like this:
<Alloy>
<Window>
<Label>I'm the default widget</Label>
</Window>
</Alloy>
And then be able to do this in the main index.js controller:
$.index.open();
Currently, you will get an error: {color:#d04437}"$.index.open is not a function. (In '$.index.open()', '$.index.open' is undefined)";{color}
Created PR: https://github.com/appcelerator/alloy/pull/949