We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<MosaicWindow path={path} title={`Window ${id}`} toolbarControls={[ <MyOtherButtons............. /> // here de default for expand and remove <Button key="maximize" onClick={() => { >>>**expand action here**<<<}> <Expand /> </Button>, <Button key="close" onClick={() =>{ >>>**remove action here**<<<}> <Close /> </Button> ]} >
The text was updated successfully, but these errors were encountered:
Use a context component to wrap your component.
Access MosaicContext.mosaicActions from there.
See Advanced API for more information.
interface MyMosaicWindowProps { id: string; path: MosaicBranch[]; } const MyMosaicWindow: React.FC<MyMosaicWindowProps> = (props) => { const { id, path } = props; const mosaic = useContext(MosaicContext); // use mosaic.mosaicActions: MosaicRootActions<T>; ... return ( <MosaicWindow path={path} ... > ... </MosaicWindow> ); };
Sorry, something went wrong.
@dannmartens thanks!!
No branches or pull requests
The text was updated successfully, but these errors were encountered: