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

Create build in widget types for Table ListWidgets

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.3.1.Final
    • Fix Version/s: 3.0.0.CR1
    • Component/s: ErraiUI
    • Labels:
      None

      Description

      It is inconvenient and not exactly intuitive to have to override a constructor and pass in HTMLPanel in order to change the DOM element type of the underlying ListWidget panel element.

      @Templated
      public class ComplaintListWidget extends ListWidget<UserComplaint, ComplaintWidget>
      {
         public ComplaintListWidget()
         {}
      
         public ComplaintListWidget(String type)
         {
            super(new HTMLPanel(type, ""));
         }
      
         @Override
         protected Class<ComplaintWidget> getItemWidgetType()
         {
            return ComplaintWidget.class;
         }
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                csa Christian Sadilek
                Reporter:
                lincolnthree Lincoln Baxter III
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: