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

Merge successive setAttrs in one zAu response

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 9.0.1
    • 9.0.0
    • ZK Client Engine

      Steps to Reproduce

      comp1.setMultiline(true);
      comp1.setValue("" + System.currentTimeMillis());
      comp1.setStyle("border: 1px dotted green");
      comp2.setTitle("Set 1");
      comp2.setWidth("500px");
      comp2.setHeight("400px");
      comp2.setStyle("border: 1px solid red");
      

      Current Result

      [
      ["setAttr",[{$u:'jCgC0'},"multiline",true]],
      ["setAttr",[{$u:'jCgC0'},"value","1234567890"]],
      ["setAttr",[{$u:'jCgC0'},"style","border: 1px dotted green"]],
      ["setAttr",[{$u:'jCgC2'},"title","Set 1"]],
      ["setAttr",[{$u:'jCgC2'},"width","500px"]],
      ["setAttr",[{$u:'jCgC2'},"height","400px"]],
      ["setAttr",[{$u:'jCgC2'},"style","border: 1px solid red"]]
      ]
      

      Expected Result

      [
      ["setAttrs",[{$u:'jCgC0'}, ["multiline",true,"value","1234567890"]]],
      ["setAttrs",[{$u:'jCgC2'},["style","border: 1px dotted green","title","Set 1","width","500px","height","400px","style","border: 1px solid red"]]]
      ]
      

            rudyhuang rudyhuang
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 6 hours Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - 6 hours Remaining Estimate - 2 hours
                6h