Hello,
I have a project that we already seperate request from mobile and web devices. And we want the toggle some config class settings. We can do this feature but there is some missing functions.
In Config Class I need to re enable some features that I disable before like “config.DisablePrint()” -> “config.EnablePrint()”
I want hide top bar at the photo. Or atleast hide button and everything in it.
configSS.PNG (53.7 KB)
configSS2.PNG (91.7 KB)
configSS3.PNG (28.1 KB)
@caglaraydogan
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): VIEWERNET-4384
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@caglaraydogan
We have planned adding the option to hide top bar and update when it will be ready.
Hello, @caglaraydogan. Option is added in GroupDocs.Viewer.UI version 6.0.13.
You can use that as shown below
public class UIViewerConfigProvider : IUIConfigProvider
{
internal bool isMobile = true;
public void ConfigureUI(Config config)
{
if (isMobile)
{
// hide toolbar entirely
config.HideToolBar();
// disable partial options
config.DisablePrint();
config.DisableFileBrowsing();
}
else
{
// show toolbar
config.ShowToolBar();
// enable partial options
config.EnablePrint();
config.EnableFileBrowsing();
}
}
}