탭아이템과 콘텐츠아이템을 탭에 동적으로 추가 합니다.
{ibtab}.addTab(prop, callback);
Name | Type | Required | Description |
---|---|---|---|
prop |
object |
필수 | 탭아이템 및 콘텐츠아이템 속성 |
callback | function |
선택 | 탭아이템과 콘텐츠아이템이 추가된 후 호출될 콜백 함수 |
none
myTab.addTab({
tabs: {
title: "Tab1",
focus: true
},
contents: {
contents: "<div style="margin: 10px;"><h4>Tab1 Contents </h4> <p>내용을 채워주세요.</p></div>"
}
}, function(object){ console.log(object.index); });
version | desc |
---|---|
7.3.0.0 |