-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Description:
I propose adding a new directive to the Angular-grid-layout library that enables users to drag new items into the grid. Similar to the functionality provided by drag-drop in Angular's CdkDrag directive, this new directive, named ktd-drag, would facilitate the dragging of elements from an external source and dropping them into the grid layout.
Feature Details:
- Name of the Directive:
ktd-drag - Usage Scenario:
- Developers can use this directive to enable the dragging of new items from a source and dropping them onto the
ktd-grid. - It should seamlessly integrate with the existing Angular-grid-layout functionality.
- Developers can use this directive to enable the dragging of new items from a source and dropping them onto the
- Optional Parameters/Configurations:
- Add inputs for
data,disabled,dragStartDelay. - Add events for
dragStart,dragMove,dragEnd. - Add new events to
ktg-grid,dragEnter,dragLeave,dropped
- Add inputs for
Reasoning:
While the current Angular-grid-layout library provides excellent support for managing the layout of existing items, there's a need for a dedicated directive to handle the dragging of new items into the grid. This new feature would enhance the library's versatility and make it even more powerful for a wide range of applications.
Note to Maintainers:
I believe that the addition of this feature would significantly benefit the Angular-grid-layout community by providing a comprehensive solution for handling both existing and new items within the grid layout. Please consider this feature request, and I'm willing to implement it with assistance.