Label Or Alt On Custom Image Button In Cgridview

Hi again,

I have added a custom column with an image in a CGridView using the following code:




array(

		'header' => '',

		'name' => 'additional_notes',

		'type' => 'raw',

		'htmlOptions' => array('style' => 'width: 30px; text-align: center;',),

		'filter'=>false,

		'value' => 'CHtml::image(

                            Yii::app()->request->baseUrl . "/images/notes.jpg",

                            "",

                            array("style" => "cursor: pointer;",

                                  "onclick" => "javascript: txt = \'$data->additional_notes\';

                                  $(\'#payment-dialog\').text(txt);

                                  $(\'#payment-dialog\').dialog(\'open\');

                                  $(\'#payment-dialog\').click(function() { $(this).dialog(\'close\'); });"

                                  )

                            )'

			),



How or where would I add a Label/Alt to show as a tooltip when you hover the mouse over the image?




                'value' => 'CHtml::image(

                            Yii::app()->request->baseUrl . "/images/notes.jpg",

                            "",

                            array("style" => "cursor: pointer;",

                                  "title" => "Your hover text",

                                  "onclick" => "javascript: txt = \'$data->additional_notes\';

                                  $(\'#payment-dialog\').text(txt);

                                  $(\'#payment-dialog\').dialog(\'open\');

                                  $(\'#payment-dialog\').click(function() { $(this).dialog(\'close\'); });"

                                  )

                            )'

                        ),



So simple, yet so difficult if you don’t know how.

Thank you, it works.