WebGIS Discussions

Need a push in the right direction when configuring WebMap, Portal or SDI services? Looking for hints and tips, or just looking for Ideas and information? The WebGIS discussion board is where you start those discussions, connect and share information.
Showing results for 
Search instead for 
Do you mean 
Reply
Frequent Contributor
Posts: 105
Registered: ‎10-13-2015
Accepted Solution

Geospatial Portal DataPanel remove/hide some elements

Hi,

 

We would like to know if it is possible remove/hide some elements in the Geospatial Portal Data panel.

For example: 

 

Row actions and  contextmenu (see image)

 

 

Technical Evangelist
Posts: 132
Registered: ‎08-05-2015

Re: Geospatial Portal DataPanel remove/hide some elements

Hi Marti,

 

in order to hide row actions from the Data Panel you can use the $GP.ui.dataView API:

 

            /**
            * This method allows to hide row action tools by ID including default tools:
            * - "wc_data_view_properties_link"
            * - "wc_data_view_clipboard_link"
            * - "wc_data_view_fit_link"
            * - "wc_data_view_remove_from_clipboard_link"
            * - "wc_data_view_remove_from_database_link"
            * @method hideRowActions
            * @param {String[]|String} ids IDs of the tools to be hidden
            * @return {void}
            */
            hideRowActions: function (ids, callback, errback) {
                this._processRowActions(ids, callback, errback, true);
            },