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
[Updated on: Thu, 17 November 2016 15:34]
Report message to a moderator