Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #170
titouanmathis opened this issue Sep 17, 2024 · 0 comments
Open
Tracked by #170

Comments

@titouanmathis
Copy link
Contributor

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.

@titouanmathis titouanmathis mentioned this issue Sep 17, 2024
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant