I have a modal component in the stack tree. Is there a way to check if the modal is currently open?
I'm using react-native-navigation version 2.18.5
Related
In my add-in, there are some dialogs that opened from the ribbon button (i.e. login and status).
I don't want to allow the user to open more than one dialog at a time.
When using the adding from Office for Web everything is working OK since Office for Web makes the dialog appear as a modal dialog so the user can't click the ribbon to open another one.
But when Office 365 for Windows and Mac the dialog is not modal and the user can open multiple dialogs.
I tried to create a flag in the commands.js (to tell if a window is open) file but it's not working, after a bit of investigation (on mac: defaults write com.microsoft.Excel OfficeWebAddinDeveloperExtras -bool true ) it seems like every time the user clicks the dialog button another commands window is opened so we can't store the context of if a window is open or not.
I saw this solution - to put the flag on local storage: Open only one dialog from ribbon
but the problem with this solution is that if the user exit Excel while the dialog is open (or any other unexpected scenario such as process killed or power down) next time the user will start Excel the user won't be able to open the dialog (the localStorage value will indicate that the dialog is still open).
My question(s):
Is there a robust way to prevent the user from opening multiple dialogs from the ribbon in office 365? How can I safely reset the localStorage value after a crash?
Am I missing something? Can one open the dialog in a modal manner (like in Excel for Web)?
I am building a Chrome extension that add some buttons to the context menu. Upon one of the buttons being clicked, it should pass a message from the background to the popup and code in the popup should scrape the current webpage for the specified thing and save it to a firestore database. It should also display the scraped data in the popup.
The problem is that late in the project we realized that the popup code does not exist outside of when the popup is active and unless the console is active the popup closes between clicks.
Is there a way we can just inject the existing popup code into the page so it persists as a popup type thing that just sticks around?
Is there any global option to disable the template picker dialog for 2sxc after the application is configured? Now this dialog is popping up every page load in edit mode and interferes with general website editing.
I'm not sure what your question is - maybe add some context or screenshot.
My guess is you added a module to the page and didn't configure it yet - so the picker automatically appears. Just pick something - or delete the module, and you should be good to go.
I have a PopUp opened by
SP.UI.ModalDialog.showModalDialog
but the content of this Pop Up hasn't any styles of the Sharepoint Portal. (It hasn't access to javascript of the main page, too). It seems that is because SP uses iframes to open it.
How can the Pop Up get the styles from the main page?
SharePoint modal dialogs use the same MasterPage as the Portal. Most of the styles are hidden using CSS tag i.e. s4-notdlg. If you search for this tag under master page, any styles under this will not be displayed on Modal Dialog.
You should either create PopupMaster.master for your popup pages, as modifying this tag will also effect Modal Dialogs used by SharePoint by default. Or you can also create a custom Master Page for Portal and modify as per your need.
I have an application which is created using MFC and I have created a MFC dll on click of a button the exe will call the dll which in turn will launch a dll using dialogClass.DoModal().
My Problem is even after this dialog I am able to access my parent application. which I should
not be able to access. Is there any setting for this . Can somebody help me on this
Sounds like you have created a modal-less dialog. If you create the same dialog as a modal pop-up dialog, then you should get the behaviour you have described.
This link should give you the information you are looking for: Using Dialog boxes
Other links that might be useful are:
Dialog box styles
Window styles