In my app, jetview top , has ha toolbar, from this toolbar in a button i open a popup, but when go to another view popup dissapear.
There is some way to keep popup open throughout the app?
thanks in advance!
In my app, jetview top , has ha toolbar, from this toolbar in a button i open a popup, but when go to another view popup dissapear.
There is some way to keep popup open throughout the app?
thanks in advance!
if you are using this.ui(...)
then created popup will be destructed on view destruction.
try webix.ui(...)
instead
I am already using webix.ui code and even then it disappears, what can I be doing wrong?
thanks in advance.
import { JetView, plugins, JetApp } from "webix-jet";
import MenuView from "views/menuView";
export default class TopView extends JetView{
config() {
let iframeChat = {
view:"iframe",
id:"idframe",
name:"idframe" ,
src:"http://www.someweb.com"};
webix.ui({
view: "popup",
id: "popup:chat",
name: "popup:chat",
width: 400,
body: {
width: 500,
rows: [
iframeChat
]
}
});
let toolbar ={
view: "toolbar",
id: "unifiedToolbar",
name: "unifiedToolbar",
elements: [
{
view: "button",
id:"btn:badget:chat",
name:"btn:badget:chat",
type:"icon",
css:"app-button",
icon:"fas fa-comment"
},
]
};
return {
rows: [
toolbar
{
cols: [
menu,
{ $subview: true }
]
}
]
}
}
ready(){
//Here open popup
$$("btn:badget:chat").attachEvent("onItemClick", function (id) {
$$("popup:chat").show();
});
}
}
use view:window
view:popup
is hidden on blur.
Thanks!!