Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Hide page up/down arrows
Hide page up/down arrows [message #1747590] Wed, 16 November 2016 10:31 Go to next message
Luka Cavic is currently offline Luka CavicFriend
Messages: 28
Registered: August 2014
Junior Member
Hi, is possible to hide this?
Re: Hide page up/down arrows [message #1747957 is a reply to message #1747590] Thu, 17 November 2016 09:59 Go to previous message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 33
Registered: September 2012
Location: Baden-D├Ąttwil, Switzerla...
UPDATE: I just stumbled upon a property in AbstractOutline:

   * Configures whether the navigate buttons are visible.
   * <p>
   * Navigation buttons give the possibility to navigate down or up the tree.
  protected boolean getConfiguredNavigateButtonsVisible() {
    return true;

So you can simply set this property to false. Which is much easier than my first advice below.


Hi Luka. You need to write some JavaScript Code to do this. These two navigation buttons are appended in Outline.js #_createNavigateButtons(). You could provide a subclass of Outline.js in the objectsFactories.js of your project and override this function there, and simply return an empty Array. The factory-file should look like this and you have to add it to your module.js:

scout.objectFactories = $.extend(scout.objectFactories, {
  'Outline': function() {
    return new myproject.MyOutline();

Now each time Scout tries to create an Outline it will create your custom Outline instead of the default Outline. Btw. subclassing a Scout class is done like this:

myproject.MyOutline = function() {;
scout.inherits(myproject.MyOutline, scout.Outline);

/** @overrides scout.Outline */
myproject.MyOutline.prototype._createNavigateButtons = function(node, staticMenus) {
  return [];

You also need to add this class to your module.js

[Updated on: Thu, 17 November 2016 15:34]

Report message to a moderator

Previous Topic:[neon] Login with http works, but not https
Next Topic:login page
Goto Forum:

Current Time: Sun Nov 18 16:26:18 GMT 2018

Powered by FUDForum. Page generated in 0.02294 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top