how can a user change the widget title ?

I am writing a widget, which could be inserted multiple times to the dashboard. Now I want to make it possible, that a user can change the widget title to distinguish the two or three inserted widgets.

How can I do that in widget programming? Can I use other text than the widget name for the widget title?

  • After a long time of experimenting, I found a solution:

    you online must asking in edit.php for a parameter "title". That was it.

    <input type="text" name="params[title]" value="<?php echo htmlentities($vars['entity']->title); ?>" />