Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-461

Alloy - Allow usage of "Require" or "Widget" in TableView

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Alloy 1.1.0, 2013 Sprint 06
    • Component/s: XML
    • Labels:

      Description

      See discussion:https://groups.google.com/forum/#!topic/appc-ti-alloy/wCIpVlJX8MQ

      Hi all,

      I think widgets for Rows/Sections are not really reusable across multiple applications at the moment. I have a feature wish to allow Require or Widget elements in TableView view markup.

      Example:

      <TableView>
          <TableViewRow title="1"/>
          <TableViewRow title="2"/>
          <Require type="widget" src="org.test.tableviewsection" title="section" />
          <Require type="widget" src="org.test.tableviewrow" title="row" />
          <TableViewRow title="3"/>
      </TableView>
      

      widget.xml would contain a markup as follows:

      <TableViewSection platform="android"><HeaderView><Label>Test</Label></HeaderView></TableViewSection>
      <TableViewSection platform="ios,mobileweb" headerTitle="Test"/>
      

      I know it could maybe work like this:

      <TableViewSection><Require type="widget" src="org.test.tableviewsection" title="section" /></TableViewSection>
      

      But not in the use case above.

      Because of this limitation I have to create all of my tables in JS and cannot use any markup / styles. Alternatively I would have to copy/paste the widget.xml markup for each Section/Row.

      Cheers

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jicks83 Jick Steen
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration