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

Allow for Customized Content #12

Closed
6 tasks
0xLeif opened this issue Oct 10, 2023 · 0 comments · Fixed by #18
Closed
6 tasks

Allow for Customized Content #12

0xLeif opened this issue Oct 10, 2023 · 0 comments · Fixed by #18
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@0xLeif
Copy link
Member

0xLeif commented Oct 10, 2023

The goal of this ticket is to enhance the Picture view by allowing users to customize the content displayed in both the single image view and the multiple image view.

The Picture view will be modified to accept two closures: one for the single image view and one for the multiple image view.

The closure for the single image view will have a parameter for an Image, allowing users to provide their own custom image content. This will enable them to display a single image with their desired styling, overlays, or additional UI elements.

The closure for the multiple image view will have a parameter for an array of Images. Users can utilize this closure to customize the layout, appearance, and interaction of multiple images.

By implementing these customization options, users will have greater flexibility in tailoring the Picture view to suit their specific requirements and design preferences.

Tasks

  • Update the Picture view to accept closures for single and multiple image views
  • Implement the single image closure to display a custom image with desired styling
  • Implement the multiple image closure to handle an array of Images and customize the layout and interaction
  • Keep the default implementation without any closures
  • Test and ensure that the customized content is rendered correctly in both single and multiple image views
  • Update documentation and provide examples on how to utilize the new customization options

Acceptance Criteria

  • The Picture view should have the ability to accept closures for both single and multiple image views
  • The single image closure should display a custom image with desired styling
  • The multiple image closure should handle an array of Images and allow customization of layout and interaction
  • The customized content should be rendered correctly in both single and multiple image views
  • The documentation should be updated to reflect the new customization options and provide clear examples

Related Tickets

@0xLeif 0xLeif added enhancement New feature or request help wanted Extra attention is needed labels Oct 10, 2023
@0xLeif 0xLeif self-assigned this Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant