Chapter 8. Drag Me, Drop Me

In this chapter, we will cover the following topics:

  • Making a component draggable
  • Restricting dragging by axis, grid, and containment
  • Snapping to the edges of nearest elements
  • Defining droppable targets
  • Restricting dropping by tolerance and acceptance
  • AJAX-enhanced drag and drop
  • Integrating drag and drop with data iteration components

Introduction

Drag and drop is an action, which means grabbing an object and dragging it to a different location. The components capable of being dragged and dropped enrich the Web and make a solid base for modern UI patterns. The drag and drop utilities in PrimeFaces allow us to create draggable and droppable user interfaces efficiently. They make it abstract for the developers to deal with the implementation details at the browser level.

In this chapter, we will learn about PrimeFaces' drag and drop utilities—draggable and droppable. AJAX-enhanced drag and drop, and a special integration with data iteration components, will be explained as well.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.18.101