ticlo / rc-dock

Dock Layout for React Component

Home Page:https://ticlo.github.io/rc-dock/examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chrome Extension injecting full site as primary dock-layout content tabpanel

petegordon opened this issue · comments

This is more a feature question. I got rc-dock working in a chrome extension, but it is not exactly what I need. Just curious if others have attempted something similar. I did try the injection of the existing content into a tab and that seems to provide the basics of what I'm trying to accomplish. For example... document.querySelector('#tab1').innerHTML = document.querySelector('body > main').innerHTML

Curious if anyone else has tried to create a dock-layout over an existing web page (HTML BODY) maybe as dock-content-holder tabpanel that the html body gets injected into and then add a second tabpanel so that the user can dock/undock a side panel. Basically, it is the need for the website HTML BODY to be the primary layout and a tab to be able to be docked/undocked around it.

I may try a different approach where the dockable panel is in relationship to a root div and does not require a dock-layout as root. Like this SlidePanel with a new added ability to dock and undock and resize. https://github.com/DimitryDushkin/sliding-pane#example

Thanks!