Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 748 Bytes

File metadata and controls

16 lines (12 loc) · 748 Bytes

Toolbar

Toolbar is the part of the action, and make sure you are familiar with Jetpack Compose. To provide a toolbar on action you should implement class top.myrest.myflow.component.ActionKeywordToolbar, and here we use kotlin to give an example:

KotlinToolbar.kt

To config plugin-spec.yml, you should config the item toolbar: runflow.KotlinToolbar to the specific action, like this:

actions:
  - keywords:
      - kotlin
    name-bundle-id: Demo Action
    handler: runflow.KotlinActionHandler
    toolbar: runflow.KotlinToolbar