Can side panel titles be dynamically appended with counter info (per context)?

56 views
Skip to first unread message

Dhruva Ray

unread,
Aug 23, 2013, 1:14:10 AM8/23/13
to fir...@googlegroups.com
Hi

To increase usability, we are thinking of appending a counter value to the side panel title - to indicate that new data has arrived on that panel (since the last visit). This will allow users to know that there is some new data on a (side) panel without having to really navigate to that panel. Needless to say, this is going to be context specific. Just wanted to check if this is possible to do in Firebug?

Thanks for helping!

Regards,
Dhruva Ray

Jan Honza Odvarko

unread,
Aug 23, 2013, 11:00:33 AM8/23/13
to fir...@googlegroups.com
The panel tab title (it's the same for main and side panels) is set here:
https://github.com/firebug/firebug/blob/master/extension/content/firebug/firefox/bindings.xml#L64

You should be able to call getTab() (see it a few lines down) and change the title. However not sure when exactly
you should do it to keep in sync.

I can improve the API, so this is easier. Please file a bug and I'll take a look at it!

(please cross post the bug number here)

Honza

Dhruva Ray

unread,
Aug 23, 2013, 8:14:00 PM8/23/13
to fir...@googlegroups.com
Thanks Honza. I will try out your suggestion till you create the API.

I have filed a bug - 6697  (https://code.google.com/p/fbug/issues/detail?id=6697) for this feature request.

Thanks,
Dhruva Ray

Jan Honza Odvarko

unread,
Aug 28, 2013, 8:08:13 AM8/28/13
to fir...@googlegroups.com
Just for the record, some new API committed and there is an example extension.
See more in the bug report.

Honza

Dhruva Ray

unread,
Aug 28, 2013, 10:49:19 AM8/28/13
to fir...@googlegroups.com
Thanks Honza! I was just about to write back when I saw your update! We used your earlier suggestion to successfully implement the dynamic title counter. Code is here : https://github.com/dhruvaray/spa-eye/blob/master/extension/chrome/content/spa_eye/panels/logPanel.js#L49. I will take a look at your extension example in detail tomorrow.

Just as an FYI : We update the title counter based on events which are raised elsewhere in the plugin. So the issue of when was not a difficult one in this scenario.

Regards,
Dhruva Ray

Jan Honza Odvarko

unread,
Aug 29, 2013, 4:08:51 AM8/29/13
to fir...@googlegroups.com
ok, great

Honza
Reply all
Reply to author
Forward
0 new messages