@talrace/ngx-template
v0.0.66
Published
## Description NgxTemplate provides a set of templates with editor, carousel or tiles.
Downloads
283
Readme
NgxTemplate
Description
NgxTemplate provides a set of templates with editor, carousel or tiles.
Installation
Add NgxTreeModule to your AppModule:
...
import { NgxTemplateModule } from '@talrace/ngx-template';
...
@NgModule({
...
imports: [
...
NgxTemplateModule,
...
],
...
})
export class AppModule {}
Usage Example
Template
<tlr-template
*ngFor="let template of templates; trackBy: trackByFn"
[canEdit]="true"
[isRoot]="true"
[template]="template"
[orderIndex]="template.linkTemplates[0].orderIndex"
[editOrderIndex]="editOrderIndex"
[allowMultiTemplates]="true"
[screenWidth]="1920"
[canDelete]="true"
[canConfigure]="true"
(moveTemplate)="onMove($event)"
(editTemplate)="onEdit($event)"
(deleteTemplate)="onDelete($event)"
(updateTemplate)="onSave($event)">
</tlr-template>