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

Add support to set object properties via XML

    Details

      Description

      Currently object properties like font.fontFamily or region.latitude can only be set in TSS. The request is to make this possible in XML as well, e.g.:

      <Label font.fontFamily="Roboto">Hello</Label>
      

      Original description

      As a developer,
      I want to be able to set font properties for a view from the xml view,
      So that I can often avoid creating controller files and keep view properties together.

      Desired xml usage:

      <Alloy>
          <Label fontFamily="Roboto" fontSize="12sp" fontStyle="italic" fontWeight="bold" text="This is test 1" />
          <Label textStyle="Titanium.UI.TEXT_STYLE_HEADLINE" text="This is test 2" />
      </Alloy>
      

      When processed, this should create a font object and properly merge this with any style objects defined.

      Added PR: https://github.com/appcelerator/alloy/pull/764

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhouse Brenton House
                Reporter:
                brentonhouse Brenton House
                Reviewer:
                Ewan Harris
                Tester:
                Lokesh Choudhary
              • Watchers:
                8 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 Source Code