FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Support lower-case-dashed component declaration in the XML · Issue #309 · NativeScript/NativeScript · GitHub

Support lower-case-dashed component declaration in the XML #309

Description

For developers coming from a web developer perspective (HTML) it would be good to support XML declarations that are using lower-case-dashed syntax (aka kebap-case). Here is an example:

<page>
  <scroll-view>
    <stack-layout>
      <label cssClass="title" text="Layouts" />
      <stack-layout>
        <button tag="layouts/stack-layout" text="StackLayout" tap="itemTap" />
...

Possible technical implementations:

  1. Split by Capital case. Ex:
    Button - button
    MyButton - my-button
    MySuperButton - my-supper-button
  2. Add a decorator to the component class. Ex:
@Component({tagName: 'button'})
export class Button extends view.View implements definition.Button {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL