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

Enhancement: Add unstyled DockItem #449

Closed
reyamir opened this issue Nov 29, 2024 · 2 comments
Closed

Enhancement: Add unstyled DockItem #449

reyamir opened this issue Nov 29, 2024 · 2 comments

Comments

@reyamir
Copy link
Contributor

reyamir commented Nov 29, 2024

I wonder can I create a Dockitem without any pre styled?, I mean there are no Tab or Split styles, just empty DockItem, so I can add it to DockArea left_dock or right_dock then create custom sidebar.

Currently, I need to create the left panel like this:

let left_panels = DockItem::split_with_sizes(
    Axis::Vertical,
    vec![DockItem::tabs(vec![], None, &dock_area, cx)],
    vec![None, None],
    &dock_area,
    cx,
);

It will be more flexible if I can create custom left panel like this:

let left_panels = DockItem::custom(< some view >)

It will also help to solve #318 and #430 in the future

@huacnlee
Copy link
Member

huacnlee commented Dec 2, 2024

Give me some UI example for show up what do you want to do.

@reyamir
Copy link
Contributor Author

reyamir commented Dec 3, 2024

I think your latest commit have fixed my issue, thank for great project
23d273e

@reyamir reyamir closed this as completed Dec 3, 2024
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

2 participants