留言板

Tooltip - the render attribute seems to be not working

Jan Tošovský,修改在10 年前。

Tooltip - the render attribute seems to be not working

Liferay Master 帖子: 566 加入日期: 10-7-22 最近的帖子
Dear All,

in my simple example the tooltip is displayed by default, like here:
http://alloyui.com/examples/tooltip/

When I try to suppress it by setting the 'render' attribute to false, it seems to be not working.

Is there another way how to hide the tooltip after initialization and show it only when required?

Thanks, Jan
thumbnail
Iliyan Peychev,修改在10 年前。

RE: Tooltip - the render attribute seems to be not working (答复)

New Member 帖子: 19 加入日期: 10-11-17 最近的帖子
Jan Tošovský:
Dear All,

in my simple example the tooltip is displayed by default, like here:
http://alloyui.com/examples/tooltip/

When I try to suppress it by setting the 'render' attribute to false, it seems to be not working.

Is there another way how to hide the tooltip after initialization and show it only when required?

Thanks, Jan



Yes, set visible: false in this way:

new Y.Tooltip(
    {
        trigger: '#myTooltip',
        visible: false
    }
).render();