Skip to content

Declare bindTarget on inline call for "Update Metadata" type buttons #563

Closed as duplicate of#317
@DXimenes

Description

@DXimenes

Please fill out these Check-boxes

  • I checked for existing similar feature requests
  • I have read the docs and checked that the feature I am requesting is not already implemented
  • My feature request consists of only one feature

Is your Feature Request related to a Problem or Annoyance?

No.

Describe the Feature you'd like

First off, thank you so much for your work :)

It would be nice to be able to make a button using meta-bind-button and declare some of the variables required for each type when it is called. The use case I've run into so far is restricted to the Update Metadata type.

Following the example on the documentation for the Update Metadata, set up the button.

label: "+1"
hidden: true
id: "count-increment"
style: default
actions:
  - type: updateMetadata
    bindTarget: p1
    evaluate: true
    value: "x + 1"

Then declare p1 on the inline call. Something like
BUTTON[count-increment(count)]] maybe?

Extra awesome if it lets you declare the value as well.

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions