BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<code>
<ej-splitter height="400" width="50%" orientation="horizontal" style="display:block; margin: 0 auto;" (create)="tabcreate($event)">
<div>
<div class="content"> Pane 1 created </div>
</div>
<div>
<ej-tab id= "tab" [showCloseButton]="true">
</ej-tab>
</div>
</ej-splitter>
</code> |
<code>
tabcreate(args){
var inst = jQuery("#tab").ejTab("instance");
inst.option("heightAdjustMode","fill");
}
</code> |
<code>
<ej-splitter orientation="horizontal" height="400" [isResponsive]="true" (create)="splitterresize($event)" (resize)="splitterresize($event)">
<div>
<div class="content"> Pane 1 created </div>
</div>
<div>
<ej-tab id= "tab" [showCloseButton]="true" width="100%" heightAdjustMode="fill">
</ej-tab>
</div>
</ej-splitter>
</code> |
<code>
splitterresize(args){
var inst = jQuery("#tab").ejTab("instance");
inst._refresh();
}
</code> |
<code>
<ej-splitter height="400" width="50%" orientation="horizontal" style="display:block; margin: 0 auto;" (create)="tabcreate($event)">
<div>
<div class="content"> Pane 1 created </div>
</div>
<div>
<myTabComponent></myTabComponent>
</ej-tab>
</div>
</ej-splitter>
|
@Component({ selector: 'myTabComponent', template: `<ej-tab id= "tab" [showCloseButton]="true></ej-tab>` export class MyTabComponentComponent { } |
<ej-splitter id="splitter" orientation="horizontal" height="100%" [isResponsive]="true" >
<div>
<div class="content"> Pane 1 created </div>
</div>
<div>
<tab-component></tab-component>
</div>
</ej-splitter>
export class TabComponent {
splitterresize(args){
debugger
var inst = jQuery("#tab").ejTab("instance");
var height=$(". ").height()-$('.e-tab ul').height()
$(inst.contentPanels).css('height', height);
}
}
|