Skip to content

Commit 99488e0

Browse files
committed
add editable cell example
1 parent 8661db3 commit 99488e0

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

docs/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@
438438
{
439439
"to": "framework/angular/examples/signal-input",
440440
"label": "Signal Input"
441+
},
442+
{
443+
"to": "framework/angular/examples/editable",
444+
"label": "Editable data"
441445
}
442446
]
443447
},

examples/angular/editable/src/app/app.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,7 @@
100100
</span>
101101
</div>
102102
<br />
103+
<button class="border rounded p-2 mb-2" (click)="refresh()">
104+
Refresh data
105+
</button>
103106
</div>

examples/angular/editable/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class AppComponent {
124124
},
125125
}))
126126

127-
rerender() {
127+
refresh() {
128128
this.data.set(makeData(10_000))
129129
}
130130
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { ApplicationConfig } from '@angular/core'
2-
import { provideRouter } from '@angular/router'
3-
4-
import { routes } from './app.routes'
52

63
export const appConfig: ApplicationConfig = {
7-
providers: [provideRouter(routes)],
4+
providers: [],
85
}

examples/angular/editable/src/app/app.routes.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/angular/editable/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>Editable cell</title>
5+
<title>Editable data</title>
66
<base href="/" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
88
<link rel="icon" type="image/x-icon" href="favicon.ico" />

0 commit comments

Comments
 (0)