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

[EAK-521] POC: ability to specify path (form name) for set actions to apply them indirectly to nested fields #521

Open
ala-n opened this issue May 15, 2024 · 0 comments · May be fixed by #522
Labels
DependsOn DependsOn-related logic question Further information is requested

Comments

@ala-n
Copy link
Contributor

ala-n commented May 15, 2024

As the EAK DependsOn utility consumer, I may want to apply set / set-if-blank actions indirectly from container (e. g. Fieldset).

Use cases:

  • Override the value of the reusable fieldset based on the current component context:
  class MyComponent {
  
     // Overrides nested value of `subfield` inside fieldset in  case `@condition` is met
     @DependsOn(
        action = DependsOnActions.SET,
        query = "@condition ? 'somevalue' : undefined",
        params = @DependsOnParam(name = "path", value = "./subfield")
     )
     private GlobalFieldset fieldset;
  }

Open questions:

  • WIeldcards support
    • name - exact field name equals name
    • *name - fields with name ends with name
    • name* - fields with name starts with name
@ala-n ala-n added question Further information is requested javascript JavaScript code contribution labels May 15, 2024
@smiakchilo smiakchilo added DependsOn DependsOn-related logic and removed javascript JavaScript code contribution labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DependsOn DependsOn-related logic question Further information is requested
Projects
2 participants