The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

Draggable demos do not work


Hi,
All demos of draggable plugins do not work. Could you help to check?

https://preview.keenthemes.com/html/metronic/docs/general/draggable/cards

Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi Sean, could you please update the JS documentation here https://preview.keenthemes.com/html/metronic/docs/general/draggable/cards with your last comment? I lost quite a few hours trying to make it work until I got here.



Hi,

Thanks for the heads-up.

We are aware of this issue and we will provide a quick fix asap.

Regards.


Hi,

You can fix this issue by referring to the following steps:

  1. Get the latest Metronic from <a href="https://1.envato.market/EA4JP">Themeforest</a> and follow <a href="https://preview.keenthemes.com/html/metronic/docs/getting-started/setup">Quick Setup</a> guide.

  2. If you are using <a href="https://preview.keenthemes.com/html/metronic/docs/getting-started/build/gulp">Gulp</a> go to <code>core/html/tools/gulp.config.js</code> and change the draggable build config as shown below:

<pre> draggable: { src: { scripts: [ "{$config.path.node_modules}/@shopify/draggable/build/umd/index.min.js", ], }, dist: { scripts: "{$config.dist}/plugins/custom/draggable/draggable.bundle.js", }, }, </pre>
  1. If you are using <a href="https://preview.keenthemes.com/html/metronic/docs/getting-started/build/webpack">Webpack</a> go to <code>tools/webpack/plugins/custom/draggable/draggable.js</code> and change the build config as shown below:
<pre> require('@shopify/draggable/build/umd'); </pre>
  1. In your custom JS code use
<pre> var containers = document.querySelectorAll('.draggable-zone'); var swappable = new Draggable.Sortable(containers, { draggable: '.draggable', handle: '.draggable .draggable-handle', mirror: { //appendTo: selector, appendTo: 'body', constrainDimensions: true } }); </pre>

Regards.

Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.