rasmusbergpalm / jslate

Write your dashboards in pure html/js
jslate.com
244 stars 54 forks source link

How to set a widget title? #11

Closed mathcoll closed 11 years ago

mathcoll commented 12 years ago

Hi,

How can I setup a title for the current widget? I means, on the left of the "Edit"button, where I can drag&drop the widget, I would like to have a customizabled title.

If not yet available, can you add a feature, I guess we will be able to edit the title options by javascript directly on the widget itself.

mathcoll commented 12 years ago

I'm answering myself... Here should be a way to add a title to a widget :

$('#widget-id').parent().parent().find('div.header span').prepend('My widget title');

Maybe there is another soluton to do the same?

rasmusbergpalm commented 11 years ago

You got it. I actually had widget titles at one point but i figured i'd leave the pixels for the users instead of deciding what to do with them.