Hello,
is it possible to add content like Calendar or ComboBox component with all functionalities (not only plane HTML element) to Essential JS2 for Angular TAB?
If yes, please send us example.
Thank you.
|
<ejs-tab id="element">
<e-tabitems>
<e-tabitem [header]='headerText[0]'>
<ng-template #content>
<ejs-calendar [value]='dateValue' [min]='minDate' [max]='maxDate'></ejs-calendar>
</ng-template>
</e-tabitem>
<e-tabitem [header]='headerText[1]'>
<ng-template #content>
<ejs-combobox id='comboelement' #samples [dataSource]='data' [placeholder]='text'></ejs-combobox>
</ng-template>
</e-tabitem>
</e-tabitems>
</ejs-tab>
|
|
HTML
<div id="calender-section" style="display:none">
<div class="control-section">
<ejs-calendar [value]='dateValue' [min]='minDate' [max]='maxDate'></ejs-calendar>
</div>
</div>
<div id="combobox-section" style="display:none">
<div class="control-section">
<ejs-combobox id='comboelement' #samples [dataSource]='data' [placeholder]='text'></ejs-combobox>
</div>
</div>
<ejs-tab id="element" #tab [items]='tabItems'>
</ejs-tab>
TS:
public tabItems: Object[] = [
{
header: { 'text': 'Calender' },
content: '#calender-section' // refer the div id here
},
{
header: { 'text': 'ComboBox' },
content: '#combobox-section'
}
];
|
Hi, after
removing dynamically added Tab and trying to add another one, we are getting this
error: