How to show popup if text is readonly

Hello.
I tryed use text view with popup property.
https://snippet.webix.com/rezyh27d
But when set property readonly=true, popup window is not shown.
How to show popup if text is readonly?
Help, pleas.

Comments

  • if you do not have to use popup property you can use click handler instead

    {
        view: "text", click: function() {
            $$("popup01").show(this.getInputNode())
        }
    }
    
  • In this case, popup not associated with text. Its property popup.config.master is undefined.
    https://snippet.webix.com/jzz10bac

  • edited March 4

    you can set it explicitly just before show

    $$("popup01").config.master = this.config.id;
    

    but this combination will be much better

          const popup = $$("popup01");
          if(!popup.isVisible() || popup.config.master!=this.config.id){
            popup.config.master = this.config.id;
            popup.show(this.getInputNode());
          }
    
  • Thanks, @intregal . This is a great solution.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion