Tooltip

Hi guys,

following code will implement tooltip using attribute title of method tag().

Unfortunately, there is no possibility rendering html-tags inside title. Any ideas(links are welcome) how to implement tooltip handling my intention to render html tags? Is there any other option implementing tooltip-box outside attribute

‘title’, so that I am able rendering html-tags





.

.

    [

        'attribute' => $dummy,

        'label' => Yii::t('app', 'Charakterisierung'),

        'format' => 'html',

        'vAlign' => 'middle',

        'value' => function($model) {

            if (!(empty($model->person->personentypDominant->typ_name))) {

                $tag = Html::tag('span', 'Tooltip-Touch Me!', [

                            // html-tags won't be rendered in title

                            'title' => $model->person->personentypDominant->typ_empfehlung,],

                            'data-placement' => 'left',

                            'style' => 'white-space:pre;border:1px solid red;'

                ]);

                return $tag . "<br>" . $model->person->personentypDominant->typ_verhaltensmerkmal_im_team_1 . "," . $model->person->personentypDominant->typ_verhaltensmerkmal_bei_stress_3 . "," . $model->person->personentypDominant->typ_verhaltensmerkmal_am_arbeitsplatz_4;

            }

        }

    ],

.

.