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

about JSDoc issue zul.wgt.Popup.open(Widget ref, Offset offset, String position, Map opts)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.9
    • None
    • JavaDoc
    • None

      The first argument ref should be a widget instance.
      But test the follow code, when click btn1, the ref is a string.

      <zk xmlns:w="client">
      <popup id="pp">
      <attribute w:name="open">
      function (ref, offset, position, opts)

      { this.$open.apply(this,arguments); alert(typeof(ref)); }

      </attribute>
      test
      </popup>
      <button label="btn1">
      <attribute name="onClick">
      pp.open(self, "after_start");
      </attribute>
      </button>
      <button label="btn2" popup="pp,after_start"/>
      </zk>

            jumperchen jumperchen
            karry karry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: