-
Notifications
You must be signed in to change notification settings - Fork 194
add hideprev and hideafter to uiLayoutContainer #158
base: master
Are you sure you want to change the base?
Conversation
add `hideprev` and `hideafter` attributes to uiLayoutContainer to control hide "prev" or "after" icon of the following spliterbar.
This is an interesting idea, but I see two problems.
|
|
Ah sorry, you are right. My bad. I think I see a glitch, though. I think that hideprev won't always work, because the splitbar is compiled with the scope of the previous container. That means that if you have 3 containers, Actually, why is A side note: I was actually thinking about something like your proposal myself. In #154 I've introduced a notion of a "central" container, which doesn't implement the hiding, but it's motivated by what other layout libraries, like jquery ui-layout, have. A central container which always takes up the remaining space (and can never be closed - this I have not implemented yet, I simply hide the splitbar). That's the common theme we see around (the editor is central and around it a file tree, symbol tree, toolbar, statusbar, etc. all of which can be closed, except for the editor). I'm planning to extend the "central" container by disabling the inward toggles around it. |
Sorry I haven't been keeping up with things lately, should be back on track now. @petrsimon thanks for doing some review! @zsp1987 This looks useful and I'd love to bring it in if we can get over the bumps mentioned by @petrsimon . |
…button. ``` <div ui-layout-container splitbar="{prevButton: false}"></div> ```
@petrsimon Thank you for the advices. Add
|
@zsp1987 I like how this is coming together. Can you add some documentation about your new feature to the readme? |
add
hideprev
andhideafter
attributes to uiLayoutContainer to control hide "prev" or "after" icon of the following spliterbar.