How to change page title on Sidecar view

I have a custom Sidecar view but I can't figure out how to specify a HTML document title for the page. I would like to be able to specify a title that is displayed on the browser tab when the view is displayed. Can anyone direct me to how I would do this?

  • Probably not the best practices way to do it, but I figured out a way to set the document title. In the initialize function of the view's controller, I set the title property on the document object. This does the trick. If someone knows a better approach, please let me know.

    initialize: function(options) 
    {
        this._super("initialize", [options]);
        document.title = 'My docuement title';
    }