BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<ej-accordion enableMultipleOpen="true" [(selectedItems)]="selecteditems"> <h3> <a rel='nofollow' href="#">Panel 1</a> </h3> <div> Panel 1 Text
</div> <h3> <a rel='nofollow' href="#">Panel 2</a> </h3> <div> Panel 2 Text </div> <h3> <a rel='nofollow' href="#">Panel 3</a> </h3> <div> Panel 3 Text </div> </ej-accordion>
<input type="button" ej-button id="button" [value]="Button" (click)="doClick()"/>
Can you please help here or provide a sample?import {Component} from '@angular/core'; @Component({ selector: 'sd-home', templateUrl: 'app/components/accordion/accordion.component.html' }) export class AccordionComponent { selecteditems: number
[]
; constructor() { this.selecteditems = [0,1,2]; }
doClick()
{
// collapse all but the first
this.selecteditems = [0]; }
}
Hi Keerthana,
sorry, everything works - it seems like this simply was a typo in my original sources. The minimized version I presented here to ask the question did not contain this error, so sorry again.
Best regards!