Actions Migration Guide

Step 1. Define View getSelection

Add getSelection method to view plugins:

getSelection() {
    return current_selection;
}

The selection can be any object, but for pluggability context format is recommended

(See Context).

Step 2. Migrate Action Configuration

2.1 Context

Arguments for actions methods are changed:

selection > { component, selection }

Now, component and selection are injected in each action life cycle method (getText, IsEnabled, handler etc.).

Selection is migrated to new format
(See Context).

  • Selection is provided by getSelection method from previous step
  • Component is binding view publicScope.

2.2 Check item

Change check item declaration:

xtype: 'menucheckitem' > type: 'checkitem'

2.3 Remove onInit method

onInit method is deprecated now

Step 3. Define Actions and Action Bindings in plugin export

See Action and Bindings Registration Action API).