What are Drag Types and Drop Targets?Drag and drop actions allow users to click and drag an item from location to another within a screen. This allows users to intuitively interact with content, rearrange items, and trigger further actions by dropping onto a designated area. Some examples of drag and drop actions are: - Dragging a record from a grid onto a delete area to remove it
- Dragging a contact from a grid onto a specific company on a company table to move that contact to that company
- Dragging items into different sections on a Kanban board to change the state of the record - see Making Kanban Boards
To set up drag and drop on components, a Insert excerpt |
---|
| _drag_type |
---|
| _drag_type |
---|
nopanel | true |
---|
| on the object you are dragging from and a Insert excerpt |
---|
| _drop_target |
---|
| _drop_target |
---|
nopanel | true |
---|
| on the object you are dropping onto is required. Components that can have Insert excerpt |
---|
| _drag_type |
---|
| _drag_type |
---|
nopanel | true |
---|
| are:Any component which has an Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | action |
---|
nopanel | true |
---|
| can be a Drop Target. The Drop Action (performed when the drop occurs) is configured in an Actionflow on the Drop Target.
For example, to assign a new company to an employee, a user creates two grids on a screen. The employee and company table have a relationship and are linked by a CompanyIDfield. The employee can be dragged and dropped onto a company to update CompanyID attribute for the employee. Creating Drag and Drop Actions Insert excerpt |
---|
| _drag_type |
---|
| _drag_type |
---|
nopanel | true |
---|
| s and
Insert excerpt |
---|
| _drop_target |
---|
| _drop_target |
---|
nopanel | true |
---|
| s are set on components on a screen.Creating a Drag Type- Right-click on the grid and select
Insert excerpt |
---|
| _view_show_config |
---|
| _view_show_config |
---|
nopanel | true |
---|
| on the component from which data will be dragged On the Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | action |
---|
nopanel | true |
---|
| , in the Action Settings section, under Drag Type, select or create a drag type, e.g. Move Contact - If creating a Drag Type, click the
Insert excerpt |
---|
| _add_icon |
---|
| _add_icon |
---|
nopanel | true |
---|
| button- Name: Enter a name for the drag type
- Attributes: create the attributes to be used in the Actionflow, e.g. CompanyID
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
|
- A Drag Mappings section will become available in the Action Settings
- A red plink indicates there are unmapped attributes
- Click the
Insert excerpt |
---|
| _mappings_configure |
---|
| _mappings_configure |
---|
nopanel | true |
---|
| button - Map across attributes from the table onto the
Insert excerpt |
---|
| _drag_type |
---|
| _drag_type |
---|
nopanel | true |
---|
| attributes set above, to be used within the Actionflow
Components with a drag type can be dragged and dropped onto any component which has a drop target with a matching drag type. Creating a Drop Target- Click on the component where data will be dropped to open the
Insert excerpt |
---|
| _property_settings |
---|
| _property_settings |
---|
nopanel | true |
---|
|
- On the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | action |
---|
nopanel | true |
---|
| , in the Drop Targets section, select or create a drop target, e.g. Add Contact - If creating a Drop Target, click the
Insert excerpt |
---|
| _add_icon |
---|
| _add_icon |
---|
nopanel | true |
---|
| button- Name: Enter a name for the drop target
- Drag Type: Select the drag type (e.g. Move Contact) that matches the drag type set on the component being dragged
- Drop Action: Select
Insert excerpt |
---|
| _actionflow |
---|
| _actionflow |
---|
nopanel | true |
---|
|
- Actionflow: Select or create an Actionflow to run when a component with a matching drag type is dropped onto this component
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
|
- If creating an
Insert excerpt |
---|
| _actionflow |
---|
| _actionflow |
---|
nopanel | true |
---|
| , select the Insert excerpt |
---|
| _drag_type |
---|
| _drag_type |
---|
nopanel | true |
---|
| as the an - Map in the attribute(s) created on the
Insert excerpt |
---|
| _drag_type |
---|
| _drag_type |
---|
nopanel | true |
---|
|
- Then configure your Actionflow as required, e.g. delete a record, move that contact to a company, change the state of the record, etc.
|