语言

Menu
Sites
Language
How to close popup window?

Hi,

I am using follwoing code to open the popup window. But I want to close that popup by clicking on save button.

I tried many ways to close that popup I by clicking on button but it is not working. Please suggest me the way to do this.

Thank you.

响应

5 回复
Vikram

Hi,

If you want to click button and close the popup window. Just using below code

<a data-role="button" data-rel="back" data-inline="true">Button</a>

But I have confused why you need to save button to close the window. And what's the save button include some logic and fuction.

Palitsyna

Hello,

I'm sorry, I can't see your code. Try to use code provided by  Vicram. I hope this code helps you to solve your problem. Anyway, here is some informatoin about popup: https://developer.tizen.org/dev-guide/2.3.1/org.tizen.web.apireference/html/ui_fw_api/mobile/ns_widget_mobile_Popup.htm

 

AVSukhov

Hello,

Please add your sample code it will be useful to analyze your problem.

Using Tizen Web UI Framework you can use following Popup API:

https://developer.tizen.org/dev-guide/2.3.1/org.tizen.web.apireference/html/ui_fw_api/mobile/ns_widget_mobile_Popup.htm

Vikram

Hi,

You can check Tizen Web Project->Samples->TizenWinset example in IDE. It include many samples of popups wtih kinds of style.

AVSukhov

Hello,

By the way, yes, it's a great way to look at the implementation of a specific UI component.