devextreme-angular icon indicating copy to clipboard operation
devextreme-angular copied to clipboard

DxPopUp not transcluding content

Open Angelminster opened this issue 10 years ago • 4 comments

If i try this:

<dx-popup [visible]="true" [title]="'SuperTitle'">
    HELLO
</dx-popup>

It shows the popup with the title but doesn't show "Hello" in the content.

If I try to use it with Templates:

<dx-popup [visible]="true" [title]="'SuperTitle'">
    <div *dxTemplate="let data = data of 'contentTemplate'">
        Hello
    </div>
</dx-popup>

It doesn't show anything

Angelminster avatar Jun 28 '16 16:06 Angelminster

Same problem with dxToolTip

Angelminster avatar Jun 28 '16 18:06 Angelminster

I've just pasted your code sample with a template (the second one) on our sample page, and it works properly on my side.

Would you please check if this code from our examples works on your side:

    <dx-popup [showTitle]="true" title="Demo of dxPopup" [(visible)]="popupVisible">
        <div *dxTemplate="let t = data of 'contentTemplate'">
            <div>Hello from dxPopup</div>
        </div>
    </dx-popup>

    <dx-button text="Show Popup" (onClick)="popupVisible = !popupVisible"></dx-button>

dxbykov avatar Jun 29 '16 07:06 dxbykov

Ok, Thank You. It Works

The problem was setting [visible]="true" without binding to a variable and changing it.

Angelminster avatar Jun 29 '16 12:06 Angelminster

Is it working now? I've just pasted this example and it's not showing any content.

jandresampaio avatar Dec 20 '16 12:12 jandresampaio