You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
923 B
55 lines
923 B
7 years ago
|
# bi.panel
|
||
|
|
||
|
## 带有标题栏的panel,基类[BI.Widget](/core/widget.md)
|
||
|
|
||
|
{% method %}
|
||
7 years ago
|
[source](https://jsfiddle.net/fineui/3m1q3857/)
|
||
7 years ago
|
|
||
|
{% common %}
|
||
|
```javascript
|
||
|
|
||
7 years ago
|
BI.createWidget({
|
||
|
element: "#wrapper",
|
||
|
type: "bi.panel",
|
||
|
title: "标题",
|
||
|
titleButtons: [{
|
||
|
type: "bi.button",
|
||
|
text: "+"
|
||
|
}],
|
||
|
el: this.button_group,
|
||
|
logic: {
|
||
|
dynamic: true
|
||
|
}
|
||
|
});
|
||
|
|
||
7 years ago
|
|
||
|
|
||
|
```
|
||
|
|
||
|
{% endmethod %}
|
||
|
|
||
|
## API
|
||
|
##### 基础属性
|
||
|
| 参数 | 说明 | 类型 | 可选值 | 默认值
|
||
|
| :------ |:------------- | :-----| :----|:----
|
||
|
| title | 标题 | string | — | " "
|
||
7 years ago
|
| titleButton | 标题后的按钮组 | array | —| [ ]
|
||
7 years ago
|
| el | 开启panel的元素 | object | —|{ }|
|
||
7 years ago
|
| logic | 布局逻辑 | object |— | { dynamic:false}
|
||
7 years ago
|
|
||
|
|
||
|
|
||
|
|
||
|
## 对外方法
|
||
|
| 名称 | 说明 | 回调参数
|
||
|
| :------ |:------------- | :-----
|
||
|
| setTitle |设置标题| title
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
---
|
||
|
|
||
7 years ago
|
|