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

Unable to load the toolbar #238

Open
pbbaba opened this issue Jul 15, 2024 · 3 comments
Open

Unable to load the toolbar #238

pbbaba opened this issue Jul 15, 2024 · 3 comments

Comments

@pbbaba
Copy link

pbbaba commented Jul 15, 2024

I have set the kioskMode to false. Despite setting it to false, unable to see the toolbar in the viewer.

I am using papaya.js build version=1456

Following is the code I am using -

var params = []
// Images
params["images"] = files.filter(item => item.includes('nii'));
params["surfaces"] = files.filter(item => item.includes('gii'))

// UI Parameters	
params['fullScreen'] = false
params["kioskMode"] = false;
params["showControlBar"] = true; 
params["expandable"] = true;

// Display Parameters
params["worldSpace"] = true;
params["showOrientation"] = true;
params["showRuler"] = true;

papaya.Container.startPapaya()
papaya.Container.resetViewer(0, params);

HTML:

<body>
	<div class="papaya" data-params="params"></div>
</body>

Please find the screenshot below that indicates that the toolbar is loading, however not populating with the menu items.
Screenshot 2024-07-15 at 12 28 50 PM
If I set kioskMode to true this div is not loaded in the DOM.

Could someone please assist me in this.

@niks2060
Copy link
Contributor

@pbbaba Can you try with one of the reference html page with all .js loaded. I think there issue with this build.

params["kioskMode"] = true;

image

@pbbaba
Copy link
Author

pbbaba commented Jul 25, 2024

@niks2060 thanks for your update.
I tried that too, and as per the documentation, setting kioskmode to true actually disables the toolbar (please see the attached screenshot)
Screenshot 2024-07-25 at 1 03 18 PM

Documentation link: https://github.com/rii-mango/Papaya/wiki/Configuration

@niks2060
Copy link
Contributor

niks2060 commented Jul 26, 2024

@pbbaba Toolbar is visible please find the attached image. Find the top side of the viewer.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants