提示框控件。
| Name | Type | Description | Default | Set? | Get? | Tag? |
|---|---|---|---|---|---|---|
| placement | String | 提示框位置。left|top|right|bottom|topleft|topright|bottomleft|bottomright | bottom | √ | √ | √ |
| selector | String | 激发提示框的选择器。常用: "[data-tooltip], [title]" | √ | √ | √ |
| Name | Parameter | Description | Return |
|---|---|---|---|
| setContent(String) | 设置提示框内容。 | ||
| showLoading() | 显示loading图标。 |
| Name | EventObject | Description |
|---|---|---|
| beforeopen |
{
sender: Object,
element: Element, //当前显示提示框的元素
content: String, //当前要显示的内容
cancel: Boolean //是否取消显示
}
|
提示框显示前发生 |
| open |
{
sender: Object,
element: Element //当前显示提示框的元素
}
|
提示框显示时发生 |
| close | 提示框隐藏时发生 |