Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4810

Radiogroup should offer setDisabled(..)/isDisabled(..), esp. when used with model & renderer

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 9.5.0.2
    • Fix Version/s: None
    • Component/s: Components
    • Environment:

      Any

      Description

      User Story

      When using <radiogroup radioRenderer="${someRenderer}" model="${someModel}"
      selectedItem="@bind(vm.myValue)"/>, it gets more difficult to access the individual <radio ../> items, e.g. to set them to disabled. It would be helpful to add

      protected boolean disabled;
      public boolean isDisabled() {
       return disabled;
       }
      public void setDisabled(boolean disabled) {
       if (this.disabled != disabled) {
       this.disabled = disabled;
       List<Radio> items = getItems();
       for (Iterator<Radio> it = items.iterator(); it.hasNext();) {
       Radio item = it.next();
       item.setDisabled(disabled);
       }
       }
       }
      

       

      Acceptance Criteria

      Code is added

      Details

      None

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            chemFelix chemFelix
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 12 seconds
                Remaining:
                Remaining Estimate - 12 seconds
                Logged:
                Time Spent - Not Specified
                Not Specified