Skip to content

Commit

Permalink
revert basic
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Jan 20, 2025
1 parent 3b4e9bd commit 9a4a8cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 45 deletions.
44 changes: 2 additions & 42 deletions examples/angular/basic/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,46 +61,6 @@
</tfoot>
</table>

<div class="h-2"></div>
<div class="flex items-center gap-2">
<button
class="border rounded p-1"
(click)="table.setPageIndex(0)"
[disabled]="!table.getCanPreviousPage()"
>
<<
</button>
<button
class="border rounded p-1"
(click)="table.previousPage()"
[disabled]="!table.getCanPreviousPage()"
>
<
</button>
<button
class="border rounded p-1"
(click)="table.nextPage()"
[disabled]="!table.getCanNextPage()"
>
>
</button>
<button
class="border rounded p-1"
(click)="table.setPageIndex(table.getPageCount() - 1)"
[disabled]="!table.getCanNextPage()"
>
>>
</button>
<span class="flex items-center gap-1">
<div>Page</div>
<strong>
{{ table.getState().pagination.pageIndex + 1 }} of
{{ table.getPageCount() }}
</strong>
</span>
</div>
<br />
<div class="h-4"></div>
<button (click)="rerender()" class="border p-2">Rerender</button>
</div>
<hr />
<br />
<div></div>
3 changes: 1 addition & 2 deletions examples/angular/basic/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
FlexRenderDirective,
getCoreRowModel,
} from '@tanstack/angular-table'
import { FormsModule } from '@angular/forms'

type Person = {
firstName: string
Expand Down Expand Up @@ -82,7 +81,7 @@ const defaultColumns: ColumnDef<Person>[] = [
@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet, FlexRenderDirective, FormsModule],
imports: [RouterOutlet, FlexRenderDirective],
templateUrl: './app.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/editable/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tanstack-table-example-angular-editable",
"name": "tanstack-table-example-angular-editabley",
"version": "0.0.0",
"scripts": {
"ng": "ng",
Expand Down

0 comments on commit 9a4a8cf

Please sign in to comment.