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

Allow a Require to provide multiple ListSections

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Alloy 1.2.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Alloy 1.2.0-alpha4

      Description

      Problem

      If a <Require> contains multiple <ListSection>'s, only the first one is used.

      To reproduce

      index.xml

      <Alloy>
        <ListView>
          <Require src="sections" />
        </ListView>
      </Alloy>
      

      sections.xml

      <Alloy>
        <ListSection>
          <ListItem title="1A" />
          <ListItem title="1B" />
        </ListSection>
        <ListSection>
          <ListItem title="2A" />
          <ListItem title="2B" />
        </ListSection>
      </Alloy>
      

      Solution

      Like when using a <Require> under <Templates> we could pass __listSection and have the generated required controller add all of it's <ListSection>'s.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dsefton Daniel Sefton
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration