moving textbox

asked 2017-04-11 17:01:08 +0800

vicnetepc gravatar image vicnetepc

Is it possible to use the mouse to move zk textbox from one position in a container to another in the same container? how do I do that? Does anyone have an example? Thanks

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2017-04-16 08:10:57 +0800

Darksu gravatar image Darksu
1991 1 4

Hello vicnetepc,

Got the following script from this forum post:


<?page title="Drop Test" contentType="text/html;charset=UTF-8"?>
    <label draggable="true" style="cursor: pointer;">Drag me into the textbox </label>

    <panel onDrop="dropped(event.dragged)" droppable="true" width="50%" border="normal">
        <div align="center">
            <textbox id="globalSearch" width="100%" placeholder="drag here your question" />


    public void dropped(Component dragged) {
        if (dragged instanceof Label)
            globalSearch.setValue( ((Label)dragged).getValue() );



link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2017-04-11 17:01:08 +0800

Seen: 34 times

Last updated: Apr 16 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More