Wings Engine

Set Up Selection Passing

During the editing process, we may need to switch the content of another component by clicking on a widget. In this case, we need to set the selection passing.

The selection transfer methods include: “Passing selection to other widgets” and “Accept selection from other widgets”.

Passing selection to other widgets: when operating the current widget, other widgets will receive the operation.

Accept selection from other widgets: when other widgets are operated, this widget will receive the operation.

Each selected delivery mode can be set up with advanced settings after it is enabled, including “Blacklist mode” and “Whitelist mode”.

Blacklist mode: exclude widgets in the blacklist from the selected delivery widgets.

Whitelist mode: only deliver widget operations in the whitelist.

This article will use the “Drop-down menu” and “Switchable grouped panel” as examples for demonstration.

1. Add components

First, create a blank project and add a “Drop-down menu” and a “Switchable grouped panel”.

2. Add data fields

Then, add data fields in the drop-down menu, including “Item Field” and “linkage Field”. Here we add the “city” field.

Bind the “Linkage Field” in the switchable grouped panel, enter “city” in the “Linkeage Field”, and enter the data contained in the “city” field in the “Linkage Values”.

3. Set selection passing

First, in the** Drop-down menu**, turn on “Passing selection to other widgets” in “Selection passing”.

Then in the switchable grouped panel, turn on “Accept selection from other widgets” in “Selection passing”.