Цю сторінку ще не перекладено українською, тому нижче англійська версія.

tooltip() html()

A help icon that shows a text in a popover on hover (the tip icons of form rows).

html()->tooltip($text = '', $extra = [])

Опції

ОпціяЗначення
$textPopover text (escaped).
icon, class, class_add, id, style, href, no_nbspIcon class; classes (default yf_tip); attributes; no space before it.

Приклад

Delivery time 

Код

return 'Delivery time' . html()->tooltip('This is custom text to be displayed inside tooltip, also you can use tip short names, editable from admin panel');

Bootstrap 3 and 5

Bootstrap 3: a popover started by yf_popover on .yf_tip; Bootstrap 5: data-bs-toggle="popover" from yf_html_bs5; Tailwind CSS (tw): daisyUI's tooltip with the text in tooltip-content (no script); the text keeps <b>, <i>, <code>, <br> without attributes, other tags and attributes are dropped, the rest escaped (html()->tooltip_html()).

Див. також: form/input, table/column_options