문제

I am new in wicket i have modal window which have a property of draggable I want to remove the draggable from the window.

Thanks in advance

도움이 되었습니까?

해결책

You could add a jQuery script to trigger a mouseup event when the user triggers a mousedown event on the draggable area. You have to add this in the head of the html for the modal windows:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org">
  <head>
    <script src="js/jquery-1.8.3.js"></script>
    <script type="text/javascript">
      $(function()
      {
        $(".w_caption").mousedown(function(){$(this).trigger("mouseup")});
      });
    </script>
  </head>
  <body>
  .................

Make sure you also reference jQuery in the head of the modal html. (tested with jquery-1.8.3)

다른 팁

It's not possible. For an alternative you might want to have a look at wiQuery (as stated here)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top