Disable Standard WebUI Functions

This is an overview of css code that allows you to hide standard features of WebUI, found in almost every widget header.

Most of these either be hidden for the whole project (by using the examples directly) or you could target a specific widget/type, for which examples are shown below too.

Please be aware that hiding these items does not disable them. A knowledgeable end-user could undo the effect of your css customization very easily, when knowing what to look for; hiding is not a security measure.

Add Filter Rule

To hide the Add Filter Rule button (globally only):

1.popup-menu .filter-items .filter-icon {
2    display: none;
3}
With css
../../_images/after_filter.png
Without css
../../_images/before_filter.png

Search Button

To hide it globally:

1.awf-dock-button .search-support-content {
2    visibility: hidden;
3}

You could prefix this selector like this, to single out widgets by widget URI:

1[data-widget\.uri="Cost Savings Table"] .awf-dock-button .search-support-content {
2    visibility: hidden;
3}

Of course, replace the URI with your own, correct, URI.

With css
../../_images/after_search.png
Without css
../../_images/before_search.png

Download Image, Upload or Download Excel / Download CSV

To hide one of the 4 Download/Upload items, globally:

1.widget-menu__item--upload-xlsx,
2.widget-menu__item--upload-xlsx + [role=separator] {
3    display: none;
4}

Where upload-xlsx can be exchanged with download-xlsx, download-csv and download-image. help-me is a menu item that only App Developers might see, but it can be hidden too.

Not all items will have a separator following them, but if there is one, the above css will also hide it. Remove the second selector if you need to keep the separator.

These buttons can also be hidden for a specific widget URI, or a specific widget type. In that case, prefix the code like this:

1[data-owner-widget-uri="Gross revenue"] .widget-menu__item--download-xlsx,
2[data-owner-widget-uri="Gross revenue"] .widget-menu__item--download-xlsx + [role=separator] {
3    display: none;
4}

or for a type:

1[data-owner-widget-type="table"] .widget-menu__item--download-xlsx,
2[data-owner-widget-type="table"] .widget-menu__item--download-xlsx + [role=separator] {
3    display: none;
4}
With css
../../_images/after_download.png
Without css
../../_images/before_download.png
With css
../../_images/after_upload.png
Without css
../../_images/before_upload.png