Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-1080

Add @ClassName annotation support.

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ErraiUI
    • Labels:
      None

      Description

      It could be really handy to add @ClassName annotation because @Property doesn't allow us to set class to the element. As a result, we could easily work with patternfly elements like <div class="card-pf-item"> and so on.

      @Element("input")
      @ClassName("my_cards")
      @Properties({
              @Property(name = "id", value = "id_1"),
              @Property(name = "placeholder", value = "13378"),
       
      })
      @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "HTMLInputElement")
      public interface CardsCollection extends InputElement{
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                treblereel Dmitrii Tikhomirov
                Reporter:
                treblereel Dmitrii Tikhomirov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: