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

Dummy/placeholder track/view #924

Closed
ThHarbig opened this issue Jul 5, 2023 · 2 comments · Fixed by #946
Closed

Dummy/placeholder track/view #924

ThHarbig opened this issue Jul 5, 2023 · 2 comments · Fixed by #946
Assignees
Labels
enhancement New feature or request

Comments

@ThHarbig
Copy link
Collaborator

ThHarbig commented Jul 5, 2023

At the moment it is not (easily) possible to place other non-gosling-related views in-between gosling views. A use case for this would be placing metadata views or views with alt texts next to gosling views.

One idea I had is having a placeholder view/track that can be accessed using an ID

@sehilyi
Copy link
Member

sehilyi commented Jul 6, 2023

We can add an additional track type here, e.g., DummyTrack. The usage could be like:

{
   views: [
     {  tracks: [{type: 'dummy'}] }
  ]
}

@sehilyi
Copy link
Member

sehilyi commented Jul 13, 2023

Some properties that need to be included:

  • id: To use JS APIs (e.g., ref.current.api.getTrack('placeholder-1'))
  • style: Mainly to determine how to style the dummy track (e.g., background and border we currently use in other tracks)
  • height and width: Determines the size of the track
  • label (or more intuitive name): for showing a text label for a placeholder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants