jQuery UI Widgets Forums Angular popover won't close

This topic contains 1 reply, has 2 voices, and was last updated by  Ivo Zhulev 7 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • popover won't close #95617

    a2m developer
    Participant

    I have a listbox within my popover, but if the list is not loaded I want to close the popover…but the close (or open) methods are not working. Any thoughts?

    <jqxPopover #resourcePopover [showCloseButton]="false" [height]="'auto'" [position]="'left'" [selector]="'#trigger'"
      [arrowOffsetValue]="0" [offset]='{left: 0, top: 0 }' [autoClose]="true">
      <jqxListBox #resourceList class="resource-list" [source]="listSource" [displayMember]="'DESCRIPTION'" [theme]="theme" [valueMember]="'LINK'"
        [renderer]="listItemRenderer" [width]="300" [autoHeight]="true" [scrollBarSize]="8" (onSelect)="onItemSelect($event)">
      </jqxListBox>
    </jqxPopover>
    <div class="my-button" id="trigger"></div>
     openResources() {
        if (!this.loaded){
          this.resourcePopover.close();
          this.load();
        }
      }
    popover won't close #95628

    Ivo Zhulev
    Participant

    Hi a2m developer,

    Why shouldn’t be the list loaded when the popover is opened?
    Also, I understand that you have your popover opened immediate after creation, but I don’t see this in your code.
    Please make me an example with sample data and share it.

    Best Regards,
    Ivo

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.