Api

ShowtipsAddtipevent

OpenAPI > ShowTips > addTipEvent

OpenAPI.ShowTips.addTipEvent() method

注册鼠标悬浮弹出提示框界面事件

Signature:

static addTipEvent(ui: UIBase, tipId: number, tipData: any, delayed?: number, expandList?: boolean): void;

Parameters

Parameter

Type

Description

ui

UIBase

需要注册的界面ui

tipId

number

需要显示的界面id

tipData

any

数据 如{"name":{text:"千叶不冷","age":{text:"18"}} 当显示提示框时会自动匹配到提示框界面中相同名字的组件并赋值

delayed

number

(Optional) [可选 默认为0] 延迟显示

expandList

boolean

(Optional) [可选 默认为false] 展开列表,当ui为列表时会对里面每个item赋予data.tip的值,即tipData = data.tip

void

Example

OpenAPI.ShowTips.addTipEvent(ui, 1001, {"name":{text:"千叶不冷","age":{text:"18"}}}, 1000, false)

Copyright © 2021 - 2025