Axure Docs
  • Axure RP Reference
  • Axure RP Tutorials
  • Axure Cloud Reference
  • Axure Support
  • Download

›The Basics

The Basics

  • Interactive Button
  • Hiding and Showing Widgets
  • Pass Text to Next Page
  • Anchor Link
  • Embedding Media
  • Full Width Image or Banner
  • Scrolling Region
  • Rotating Carousel / Slideshow
  • Navigation Menu
  • Tooltips
  • Tab Menu
  • Accordion Menu
  • Drag and Drop

Complex Interactions

  • Account Login
  • Auto Tab Fields
  • Blinking Text
  • Dynamically Set Droplist Options
  • Set Text with Droplist
  • Required Fields
  • Scroll Activated Sticky Header
  • Set Dynamic Panel State on Next Page
  • Slider Control
  • Terms and Conditions
  • Timer

Mobile Patterns

  • Swiping Slideshow
  • Toggle Switch

Drag and Drop Tutorial

In this tutorial, you'll learn how to make widgets draggable. You'll also learn how to execute actions when a widget is dropped after being dragged.


Note

Click here to download the completed RP file for this tutorial.

1. Widget Setup

  1. Open a new RP file and open Page 1 on the canvas.

  2. Drag a placeholder widget onto the canvas.

  3. Right-click the placeholder and select Create Dynamic Panel in the context menu.

Note

Dynamic panels are the only widgets with drag events, so any elements that you want to be draggable must be placed inside a dynamic panel.

2. Move the Dynamic Panel with Its Dragged Event

  1. Select the dynamic panel and click New Interaction in the Interactions pane.

  2. Select the Dragged event in the list that appears, and then select the Move action.

  3. Select This Widget in the Target dropdown.

  4. Leave With Drag selected in the Move dropdown, and click OK to save the action. This will make the dynamic panel move wherever the cursor goes as you drag it in the web browser.

3. Preview the Interaction

Preview the page and drag the placeholder around.

4. Move the Dynamic Panel Back to Its Starting Position When Dropped

  1. Back in Axure RP, select the dynamic panel and click New Interaction in the Interactions pane.

  2. Select the Drag Dropped event in the list that appears, and then select the Move action.

  3. Select This Widget in the Target dropdown.

  4. Leave To x,y Before Drag selected in the Move dropdown, and click OK to save the action. When you stop dragging the dynamic panel in the web browser, this will return it to its starting position.

5. Preview the Interaction

Preview the page again and drag the placeholder around. Notice that now when you drop it, it returns to its starting position.

← Accordion MenuAccount Login →
  • 1. Widget Setup
  • 2. Move the Dynamic Panel with Its Dragged Event
  • 3. Preview the Interaction
  • 4. Move the Dynamic Panel Back to Its Starting Position When Dropped
  • 5. Preview the Interaction
Axure Docs
Stay Connected

Sign up to receive Axure tutorials and news. You can unsubscribe at any time.

Axure
TourEnterpriseCompanyDownloadPurchase
Legal
Customer AgreementPrivacy PolicyGDPRSecurityPatents
Resources
BlogForumLicense PortalAxure Cloud
Support
Learn and SupportGetting StartedReferenceWidget LibrariesAxure RP 8 Documentation and Tutorials
Copyright © 2002–2021 Axure Software Solutions, Inc. All rights reserved. Axure® is a registered trademark of Axure Software Solutions, Inc.