-
Notifications
You must be signed in to change notification settings - Fork 83
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
Vanilla JS Expand Header Buttons? #833
Comments
+1
in initialize function but I don't know how to include this option when creating panel? |
Definiltey a hack @kosirm But I got this to work, hopefully @mathuo can give a better insight :-) for(let g of dockview.panels){
} You should also add switching the icon when isMaximized or not |
@hmpmarketing thank you, much appreciated! Will test it immediately! I thought it is like adding some option to panel when creating it... but nevermind, as far as it is working, for me is fine. edit: working perfectly!!! thanks again |
@kosirm anytime! FYI, if you know how to listen to an "onReady" event (when dockview has completely loaded) let me know. I am looking around the code and I cant seem to find an onReady function. I want to have an overlay modal (IE: loading platform....) once everything is loaded I would hide the modal. Right now, I am using timeouts but it is not perfect! Also, I cant get the initialHeight / initialWidth to work. Im using dockview.getPanel('panel').api.setSize({width:400}) on a settimout |
@hmpmarketing I'm exploring exactly same thing 😄 ... because I'm used to use events with addEventListener ... This looks like the event which is accessible on initialization:
Or:
As far as I can see DockviewReadyEvent is not exported. |
@hmpmarketing I have a little problem, if component is not focused, I can not change maximize icon and I don't know how to focus first?
|
FYI: Im using material icons |
@hmpmarketing Material Icons... me too... 😄 For me it works the same: So I want to focus it first, then maximize. |
I don't know it it is possible to focus panel by id, but in the meantime, async call solved it, because when it is maximized it is automatically focused.
|
Hi,
Are there any examples on how to add expand / minimise buttons for the header similar to what is on
https://dockview.dev/demo?
Thanks again and loving this!!
The text was updated successfully, but these errors were encountered: