diff --git a/projects/addon-table/components/reorder/reorder.component.ts b/projects/addon-table/components/reorder/reorder.component.ts index a0a2440bbe9b..92a34b449968 100644 --- a/projects/addon-table/components/reorder/reorder.component.ts +++ b/projects/addon-table/components/reorder/reorder.component.ts @@ -8,6 +8,8 @@ import { Output, } from '@angular/core'; import {TUI_TABLE_SHOW_HIDE_MESSAGE} from '@taiga-ui/addon-table/tokens'; +import {TuiContextWithImplicit} from '@taiga-ui/cdk'; +import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {Observable} from 'rxjs'; import {TUI_REORDER_OPTIONS, TuiReorderOptions} from './reorder.options'; @@ -49,6 +51,11 @@ export class TuiReorderComponent { @Inject(TUI_TABLE_SHOW_HIDE_MESSAGE) readonly showHideText$: Observable, ) {} + @Input() + content: PolymorpheusContent & {index: number}> = ({ + $implicit, + }) => String($implicit); + @HostListener('focusout.stop') noop(): void {} diff --git a/projects/addon-table/components/reorder/reorder.module.ts b/projects/addon-table/components/reorder/reorder.module.ts index 0a57e21c87f9..b7c3dfd6a8e8 100644 --- a/projects/addon-table/components/reorder/reorder.module.ts +++ b/projects/addon-table/components/reorder/reorder.module.ts @@ -2,11 +2,18 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {TuiButtonModule, TuiSvgModule} from '@taiga-ui/core'; import {TuiTilesModule} from '@taiga-ui/kit'; +import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; import {TuiReorderComponent} from './reorder.component'; @NgModule({ - imports: [CommonModule, TuiSvgModule, TuiButtonModule, TuiTilesModule], + imports: [ + CommonModule, + TuiSvgModule, + TuiButtonModule, + TuiTilesModule, + PolymorpheusModule, + ], declarations: [TuiReorderComponent], exports: [TuiReorderComponent], }) diff --git a/projects/addon-table/components/reorder/reorder.template.html b/projects/addon-table/components/reorder/reorder.template.html index ae12abbba688..a8254479510c 100644 --- a/projects/addon-table/components/reorder/reorder.template.html +++ b/projects/addon-table/components/reorder/reorder.template.html @@ -15,7 +15,9 @@ class="t-icon" [src]="options.icons.drag" > - {{ item }} + + {{ template }} +