Question

Add custom label to Looker web UI?

  • 22 October 2021
  • 3 replies
  • 30 views

Userlevel 2

Is there a way to customize the Looker main web UI to show a text value that is derived at run time?

I’m looking to display a text label next to the white label logo, and have that text label value derived at run time  from user variable values.

 

 


3 replies

Hi ihayes,

are you looking for whitelabeling?

https://docs.looker.com/admin-options/settings/whitelabel

Userlevel 2

I understand the white labelling capabilities, and they are being used,  but there does seem to be way to add a run time derived custom display label into the Looker web UI that would allow me to display a context message about what the user is viewing

 

Userlevel 6
Badge

This is a hugely missed feature in Looker but...

 

A long while ago there was a license feature that is called “Custom Messaging” and would allow you to create messages in a banner across top of browser such as “dataset X is currently incorrect”, “database is currently undergoing maintenance”, we never ended up using it and I dont think it works anymore but this is a copy paste from the config page:

[all pages custom message url]

This URL will be in a <script> tag on every page on Looker.

The following URL parameters will be added to the url:

  • callback the name of the function to be called in the JSONP reply.

See below for what can be passed to the callback function.

[explore custom message url]

This URL will be in a <script> tag on every explore page on Looker.

It will be loaded after every query is run.

The following URL parameters will be added to the url:

  • callback the name of the function to be called in the JSONP reply.
  • model the name of the Looker model.
  • view the name of the model’s view.
  • connection the name of the database connection being used.
  • The following optional field names will be provided in comma separated list:
    • dimensions the dimension field names in the query.
    • measures the measure field names in the query.
    • pivots the pivoted field names in the query.
  • sql the sql run on the server. optional

See below for what can be passed to the callback function.

 

The URLs on this page are expected to return JSONP, the reply should call a function and pass in an array of messages. The function name to call will be passed as thecallbackurl parameter.

Each of the messages passed in will be a javascript object with amessageproperty containing the HTML message to display.

e.g.
http://example.com/messages?callback=sendMessages
Could return
sendMessages([{message: "System working"}, {message: "All systems go"}])

Each message can have the following properties. Onlymessageis required.

  • messageThe message to display in HTML.
  • levelWhat is the severity of the message. One of successnoticewarningor error.

Reply