Select to view content in your preferred language

How to create a custom on screen panel?

799
2
Jump to solution
11-15-2016 07:43 AM
MadalinCiciu
New Contributor

Hello,

So I am building a widget and I would like that when I click a button in my widget to open another on-screen panel with my on html content. I need to drag and close this panel. Is this possible?
Thanks!

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Madalin,

   Sure you just need to create a jimu/dijit/Popup from your button click. Here is a sample snippet:

        this.myPopup = new Popup({
          titleLabel: "my title",
          autoHeight: true,
          content: this.serviceChooserContent.domNode,
          container: 'main-page',
          width: 640
        });

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Madalin,

   Sure you just need to create a jimu/dijit/Popup from your button click. Here is a sample snippet:

        this.myPopup = new Popup({
          titleLabel: "my title",
          autoHeight: true,
          content: this.serviceChooserContent.domNode,
          container: 'main-page',
          width: 640
        });
MadalinCiciu
New Contributor

Ok this works. Thanks a lot.

0 Kudos