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

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

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 9.6.0
    • 9.5.0.2
    • Components
    • Security Level: Jimmy
    • Any

      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

            Leon03 Leon03
            chemFelix chemFelix
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: