Skip to content

[DataComputed] Add support to compute a value with multiple origin #296

Description

@titouanmathis

As of now, we can only use the current group of Data... components to compute a value:

<input data-component="DataModel" type="text">
Length: <span data-component="DataComputed" data-option-compute="value.length"></span>

It might be useful to be able to use the value of multiple groups of Data... components, for example to add multiple values:

<input 
  data-component="DataModel"
  data-option-name="a"
  type="number">
+
<input
  data-component="DataModel"
  data-option-name="b"
  type="number">
=
<input 
  data-component="DataGroupComputed"
  data-option-names="a b"
  data-option-compute="a.value + b.value"
  type="number"
  readonly>

We could also have a similar DataGroupEffect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions