bricks/docs/cn/widgets/conform.md
2024-05-14 17:14:30 +08:00

35 lines
631 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 确认控件
弹出式用户确认控件显示标题以及消息并在下方提供确认和放弃两个按钮。点击确认后关闭窗口并触发“comformed”事件
## widgettype值
Conform
## 父类
[bricks.Message](message.md)
## 构建参数
同bircks.Message控件的参数
## 方法
## 事件
### conformed
用户点击确认按钮触发的事件
### cancelled
用户点击discard按钮触发的事件
## 使用例子
```
{
"id":"uuuu",
"widgettype":"Conform",
"options":{
"width":"40%",
"height":"40%",
"archor":"cc",
"title":"Test Title",
"message":"This is a test message"
}
}
```