Skip to content

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

Closed

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 {

Activity

  1. tjvantoll commented on Jun 11, 2015

    @tjvantoll
    Contributor

    +1 This has always bothered me but I never thought to log it.

  2. RangerMauve commented on Jun 11, 2015

    @RangerMauve

    This would make the different UI elements feel more like web components, and maybe in the future could be used to actually use web components.

  3. added this to the 1.3.0 milestone on Jul 24, 2015
  4. self-assigned this
    on Jul 24, 2015
  5. lock commented on Aug 30, 2019

    @lock

    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.

  6. locked and limited conversation to collaborators on Aug 30, 2019
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