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

va-file-input-multiple allow for showing the slot conditionally #3551

Open
1 task
ataker opened this issue Nov 26, 2024 · 0 comments
Open
1 task

va-file-input-multiple allow for showing the slot conditionally #3551

ataker opened this issue Nov 26, 2024 · 0 comments

Comments

@ataker
Copy link
Contributor

ataker commented Nov 26, 2024

Description

Developers want to be able to show the slot additional info conditionally. Example: if a PDF is password protected, show a field to enter a password.

Details

Currently there is no way to pass specific data to a slot of an individual file input in va-file-input-multiple. The slots are appended to the individual file inputs in componentDidRender in a forEach loop.

The two possible solutions I can think of is:

  • Accept a prop that tells us which file input should show slot content or
  • Accept a prop that's a rule that is run to tell the component to show the slot content

Acceptance Criteria

  • Developers can conditionally show slot content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant