Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 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: 47
Registered: August 2014
Member
Hi, is possible to hide this?

https://s12.postimg.org/srbnqz7r1/Screenshot_64.png
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: 204
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
Senior Member
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.
   */
  @ConfigProperty(ConfigProperty.BOOLEAN)
  @Order(160)
  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() {
  myproject.MyOutline.parent.call(this);
  //...
};
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


Eclipse Scout Homepage | Documentation | GitHub

[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: Thu Apr 25 00:51:26 GMT 2024

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

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

Back to the top