Skip to content

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

@ligaz

Description

@ligaz

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 {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions