mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
49 lines
1.7 KiB
TypeScript
49 lines
1.7 KiB
TypeScript
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'handsontable-section',
|
|
template: `
|
|
<div class="widgets">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<ba-card cardTitle="Examples">
|
|
<section id="handsontable">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<basic-demo></basic-demo>
|
|
<br>
|
|
<br>
|
|
<advanced-demo></advanced-demo>
|
|
<br>
|
|
<br>
|
|
<finance-demo></finance-demo>
|
|
<br>
|
|
<science-demo></science-demo>
|
|
<br>
|
|
<br>
|
|
<sheet-demo></sheet-demo>
|
|
<br>
|
|
<br>
|
|
<sport-demo></sport-demo>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</ba-card>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`
|
|
})
|
|
export class HandsontableSectionComponent {
|
|
currentHeading:string = 'Basic';
|
|
|
|
select(e) {
|
|
if (e.heading) {
|
|
this.currentHeading = e.heading;
|
|
}
|
|
}
|
|
}
|
|
|
|
function escape(text: string): string {
|
|
return text.replace(/{/g, '{').replace(/}/g, '}');
|
|
}
|