Context menu in headless viewer in forge viewer - react-native-ios

I am trying to use headless viewer of autodesk for ipad app with react native web view for hiding the bottom toolbar. But using that I could not get the context menu on right click. Is there any way the context menu can be generated in headless forge viewer.

I guess context menus are also not part of the headless viewer. All you would need to do to turn the normal viewer into headless would be to add a custom css rule:
.adsk-viewing-viewer .adsk-toolbar {
display: none !important;
}

Related

How to customize menu in electron app?

I have one frameless electron app which can be run on windows and mac system. I have learned how to set ApplicationMenu and contextmenu(right click only). But, I want to set an Image like settings and clicking on that will open the customized menu (which have its HTML, CSS and js) which catch the events like focusedWindow to get the current focusedWindow. How can I achieve this functionality? Below is the image which describes what I am trying to do.
I have created a div where I am showing and hiding a dive on setting image click. To call browserWindow instance in renderer side you can use remote to call the instance like:
remote.getCurrentWindow().setPosition(x, y);

Call "Select an element" from a sidebar button

I am developing a Google Chrome Extension for UI Web Testing. And I need to call the native Chrome selector of elements, which You can invoke by CtrlShiftC or via the toolbar:
But I want to call it after click on my button which located in the elements sidebar:
How can I do that from a javascript click event of a button?
There's no way to invoke the built-in element selector from within the extension. Well, except the weird method of writing a separately installable native OS application that communicates with your extension via nativeMessaging API and sends a click event to the toolbar or triggers the hotkey.
A workable solution though is to use a 3rd-party JavaScript library that imitates the element selector behavior and once the element is selected you can highlight it in the Elements panel.

Chrome app context menu on webview

Is there any way to enable context menus on webviews in a Chrome app? The app we have runs a webview in fullscreen mode and there doesn't seem to be a way to add to the context menu on the webview. If this is not possible, is there some way to add items to the application level menu for the app?

Debugging new Chrome packaged apps

I'm playing with new-style packaged apps in Chrome 24, and I don't see any way to bring up Developer Tools to do debugging.
What's the recommended strategy for debugging?
go to here
chrome://inspect/
find the page you want
Starting on Chrome 24, you can right click and inspect your page or inspect the background page.
If your app doesn't have any open window to right click, you can go to chrome://extensions and use the Inspect Views links, from where you can open Developer Tools for any of your app pages, including those in the background.
Before Chrome 24, the only difference is that the background page could only be inspected using the chrome://extensions link, there was no "Inspect background page" in the right click menu.
UPDATE: If you want to debug an app installed from the Chrome Web Store, you need to enable the flag "Enable debugging for packed apps" in the chrome:flags page:
After that, right click will work on any app.
I've been able to right click the content area and inspect an element to get the dev tools to come up.

How to disable menu in Blackberry default browser

I have to launch default blackberry browser in my application and display html page. But i do not want browser default menu items. I want to either disable default menu items or make them not selectable.
You can't supress the default MenuItems in the native browser application. You'll need to implement a BrowserField in your own application instead.

Resources