Content-Length: 234924 | pFad | https://github.com/NativeScript/NativeScript/issues/534

F4 Content Property for XML declarations · Issue #534 · NativeScript/NativeScript · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Property for XML declarations #534

Closed
ligaz opened this issue Jul 31, 2015 · 2 comments
Closed

Content Property for XML declarations #534

ligaz opened this issue Jul 31, 2015 · 2 comments

Comments

@ligaz
Copy link
Contributor

ligaz commented Jul 31, 2015

In order to simplify the XML declaration it might be a good idea to introduce the concept of Content Property. Here is an example:

  <Page.actionBar>
    <ActionBar>
      <ActionBar.actionItems>
        <ActionItem text="{{ resources.signUp }}" tap="signUpMenuItemTap" android.position="actionBar" />
      </ActionBar.actionItems>
    </ActionBar>
  </Page.actionBar>

can be simplified to just:

  <Page.actionBar>
    <ActionBar>
      <ActionItem text="{{ resources.signUp }}" tap="signUpMenuItemTap" android.position="actionBar" />
    </ActionBar>
  </Page.actionBar>

The idea is to annotate somehow the respective UI component so that the XML parser can figure out which should be the Content property and set the property value based on the XML element's content.

A possible way to do this is to use decorators on the UI components.

@enchev
Copy link
Contributor

enchev commented Oct 16, 2015

Merged with this: #597

@enchev enchev closed this as completed Oct 16, 2015
@lock
Copy link

lock bot commented Aug 30, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/NativeScript/NativeScript/issues/534

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy