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

How to use Visio API to show/hide toolbar in SharePoint online #6433

Closed
1 task
kanchankumbhar2 opened this issue Nov 2, 2020 · 8 comments
Closed
1 task
Labels
area:spfx Category: SharePoint Framework (not extensions related) status:answered Answer to a question. status:unclear Submitted issue isn’t clear... needs more detail, clarification, context, etc type:question Question... if answered, will be tagged as such.

Comments

@kanchankumbhar2
Copy link

Category

  • Question

Question

I wanted to hide the footer section of visio on Sharepoint page. On the page I have added embeded web part and configured the URL of visio file.

image

Environment details (development & target environment)

  • Your Developer Environment: Windows 10
  • Target Environment: SharePoint Online

I tried with this repository sample, but when I run gulp serve , for some reason I am not able to edit the properties of it.

Any heads-up on this.

Thanks for your contribution! Sharing is caring.

@ghost
Copy link

ghost commented Nov 2, 2020

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 Awaiting categorization and initial review. label Nov 2, 2020
@patrikhellgren
Copy link
Contributor

There is an active issue with the Visio JS API (OfficeDev/office-js#1378) and you probably run into that when trying the SPFx sample.
If that is the case you need to download visio-web-embedded.js and bundle that in the SPFx package instead of referencing the external package to make it work until the issue is resolved.

@andrewconnell
Copy link
Collaborator

Unclear what you're asking... is this within a custom SharePoint web part? I see you referenced a specific sample project in a different repo. If you have a question about that project, suggest you post the question to that repo as this issue list is for general SharePoint development-related questions.

@andrewconnell andrewconnell added Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. Needs: Context Detail ❓ Need more context detail around the issue. status:unclear Submitted issue isn’t clear... needs more detail, clarification, context, etc and removed Needs: Triage 🔍 Awaiting categorization and initial review. labels Nov 2, 2020
@ghost
Copy link

ghost commented Nov 2, 2020

The more context details you can provide, the easier it is to help assist on issues. Any code you can provide and/or screenshots of the issue also help. The easier you can make it to reproduce the issue, the easier and quicker it is for someone to help you. Please refer to How to Create Good Issues, specifically How to Create Good Issues: Include context, in our wiki for more details.

@andrewconnell andrewconnell added the type:question Question... if answered, will be tagged as such. label Nov 2, 2020
@kanchankumbhar2
Copy link
Author

Unclear what you're asking... is this within a custom SharePoint web part? I see you referenced a specific sample project in a different repo. If you have a question about that project, suggest you post the question to that repo as this issue list is for general SharePoint development-related questions.

As I mentioned in the question, I need to hide the toolbar of visio using API. I am new in Sharepoint Online customization i.e SPFX,so need help how to achieve this feature. As I mentioned in above I try the ready to use the SPFX web part but somehow it is not working.

@ghost ghost added Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. and removed Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. labels Nov 4, 2020
@kanchankumbhar2
Copy link
Author

kanchankumbhar2 commented Nov 4, 2020

There is an active issue with the Visio JS API (OfficeDev/office-js#1378) and you probably run into that when trying the SPFx sample.
If that is the case you need to download visio-web-embedded.js and bundle that in the SPFx package instead of referencing the external package to make it work until the issue is resolved.

Sure I'll try this solution. Thanks

@andrewconnell
Copy link
Collaborator

@kanchankumbhar2 said

I am new in Sharepoint Online customization i.e SPFX,so need help how to achieve this feature. As I mentioned in above I try the ready to use the SPFX web part but somehow it is not working.

Understood, but SPFx doesn't provide an API to remove toolbars. While I'm not familiar with the Visio API, it appears this toolbar is specific to the Visio API so it's a Visio specific thing, not a SPFx thing.

@andrewconnell andrewconnell added status:answered Answer to a question. area:spfx Category: SharePoint Framework (not extensions related) and removed Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. Needs: Context Detail ❓ Need more context detail around the issue. labels Nov 4, 2020
@ghost
Copy link

ghost commented Nov 7, 2020

Closing this issue as "answered". If you encounter a similar issue(s), please open up a new issue. See our wiki for more details: Issue-List: Our approach to closed issues

@ghost ghost closed this as completed Nov 7, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Nov 7, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:spfx Category: SharePoint Framework (not extensions related) status:answered Answer to a question. status:unclear Submitted issue isn’t clear... needs more detail, clarification, context, etc type:question Question... if answered, will be tagged as such.
Projects
None yet
Development

No branches or pull requests

3 participants