Fixtable for Ember.js

Basic Grid Test

Test Editable Grid
Total Rows: 53

Simple Table

This Fixtable loads and renders all of its content without any pagination or filtering.

 
Name
Address
Alignment
Username
1 Sherlock Holmes 221B Baker Street Good
sherlock1
2 Dudley Dursley 4 Privet Drive Evil
dudley2
3 Hank Hill 84 Rainey Street / Arlen, TX Good
hank3
4 Peggy Hill 84 Rainey Street / Arlen, TX Evil
peggy4
5 Bobby Hill 84 Rainey Street / Arlen, TX Good
bobby5
6 Gandalf Stormcrow Good
gandalf6
7 Sauron Mordor Evil
sauron7
8 Morgoth Thangorodrim Evil
morgoth8
9 Manwe Valinor Good
manwe9
10 Homer Simpson Springfield, Illinois Neutral
homer10
11 Marge Simpson Springfield, Illinois Good
marge11
12 Bart Simpson Springfield, Illinois Evil
bart12
13 Lisa Simpson Springfield, Illinois Good
lisa13
14 Maggie Simpson Springfield, Illinois Neutral
maggie14
15 Abe Simpson Springfield, Illinois Neutral
abe15
16 Mr. Burns Burns Manor Evil
mr16
17 Waylon Smithers Burns Manor Neutral
waylon17
18 Moe Szyslak Moe's Tavern Neutral
moe18
19 Darth Revan Evil
darth19
20 Spongebob Squarepants A Pineapple Under the Sea Good
spongebob20
21 Fitzwilliam Darcy Pemberley Good
fitzwilliam21
22 Nessie Loch Ness Evil
nessie22
23 The Cat in the Hat Neutral
the23
24 Freyja Folkvangr Good
freyja24
25 Odin Valhalla Good
odin25
26 Nidhogg Yggdrasil Neutral
nidhogg26
27 Jormungandr Midgard Neutral
jormungandr27
28 Jor-El Krypton Good
jor28
29 Oliver Twist Good
oliver29
30 Artemis Fowl Fowl Manor Neutral
artemis30
31 Roland Deschain Neutral
roland31
32 Han Solo Coruscant Good
han32
33 Chewbacca Kashyyyk Good
chewbacca33
34 Sheev Palpatine Naboo Evil
sheev34
35 Luke Skywalker Tatooine Good
luke35
36 Darth Vader Death Star Evil
darth36
37 Owen Lars Tatooine Good
owen37
38 Beru Lars Tatooine Good
beru38
39 Lando Calrissian Cloud City Neutral
lando39
40 Bib Fortuna Jabba's Palace Evil
bib40
41 Yoda Dagobah Good
yoda41
42 Arthur Pendragon Camelot Good
arthur42
43 Myrddin Emrys Sacred Grove of Bel Good
myrddin43
44 Sir Lancelot Camelot Good
sir44
45 The Ghost of Christmas Past Good
the45
46 The Ghost of Christmas Present Good
the46
47 The Ghost of Christmas Future Good
the47
48 The Grinch Cliff Overlooking Whoville Evil
the48
49 Tony Stark Stark Tower / Columbus Circle / New York, NY 10019 Good
tony49
50 Daredevil Hell's Kitchen Good
daredevil50
51 Dr. Strange Sanctum Santorum Good
dr51
52 Reed Richards The Baxter Building Good
reed52
53 James Tiberius Kirk USS Enterprise Good
james53

Client Paging and Filtering

This Fixtable loads all of its content at once but paginates it on the client.

We don't need to show the loading indicator while changing pages, since the update should be immediate.

The rows can be filtered by column, and the filtering is handled entirely by the Fixtable on the client. The filters are applied 500ms after the user stops typing into a filter field.

 
Name
Address
Alignment
Username
1 Sherlock Holmes 221B Baker Street Good
sherlock1
2 Dudley Dursley 4 Privet Drive Evil
dudley2
3 Hank Hill 84 Rainey Street / Arlen, TX Good
hank3
4 Peggy Hill 84 Rainey Street / Arlen, TX Evil
peggy4
5 Bobby Hill 84 Rainey Street / Arlen, TX Good
bobby5
6 Gandalf Stormcrow Good
gandalf6
7 Sauron Mordor Evil
sauron7
8 Morgoth Thangorodrim Evil
morgoth8
9 Manwe Valinor Good
manwe9
10 Homer Simpson Springfield, Illinois Neutral
homer10
11 Marge Simpson Springfield, Illinois Good
marge11
12 Bart Simpson Springfield, Illinois Evil
bart12
13 Lisa Simpson Springfield, Illinois Good
lisa13
14 Maggie Simpson Springfield, Illinois Neutral
maggie14
15 Abe Simpson Springfield, Illinois Neutral
abe15
16 Mr. Burns Burns Manor Evil
mr16
17 Waylon Smithers Burns Manor Neutral
waylon17
18 Moe Szyslak Moe's Tavern Neutral
moe18
19 Darth Revan Evil
darth19
20 Spongebob Squarepants A Pineapple Under the Sea Good
spongebob20
21 Fitzwilliam Darcy Pemberley Good
fitzwilliam21
22 Nessie Loch Ness Evil
nessie22
23 The Cat in the Hat Neutral
the23
24 Freyja Folkvangr Good
freyja24
25 Odin Valhalla Good
odin25

Server Paging and Filtering

This Fixtable only loads a page at the time and relies on its owning component or controller to provide more data. (This example is actually still implemented on the client, but it simulates server pagination.)

Because loading data from the server is asynchronous, we show the loading indicator while we wait to let the user know that something is happening.

The rows can be filtered by column, but the filtering must be implemented by the consuming component or controller, since the Fixtable does not have enough information to perform filtering on the client. The filters are applied 500ms after the user stops typing into a filter field. For select-type filters, a label may be optionally provided for each option to have control over the text shown in the select-type filter dialog. In the next few tables, we are using the labels "Positive" and "Negative" for the filter options "Good" and "Evil" respectively, while keeping "Neutral" the same.

 
Name
Address
Alignment
Username
Loading...

Server Paging with Manual Filter Application and Placeholder Text

Like the previous example, this Fixtable has server pagination and filtering enabled. Unlike the previous example, the filters are not applied until the user presses a button.

The filter fields for this table also have placeholder text defined in the column definitions.

 
Name
Address
Alignment
Username
Loading...

Row Selection

This Fixtable lets you select rows.

Selected:

(none)

 
Name
Address
Alignment
Username
1 Sherlock Holmes 221B Baker Street Good
sherlock1
2 Dudley Dursley 4 Privet Drive Evil
dudley2
3 Hank Hill 84 Rainey Street / Arlen, TX Good
hank3
4 Peggy Hill 84 Rainey Street / Arlen, TX Evil
peggy4
5 Bobby Hill 84 Rainey Street / Arlen, TX Good
bobby5
6 Gandalf Stormcrow Good
gandalf6
7 Sauron Mordor Evil
sauron7
8 Morgoth Thangorodrim Evil
morgoth8
9 Manwe Valinor Good
manwe9
10 Homer Simpson Springfield, Illinois Neutral
homer10
11 Marge Simpson Springfield, Illinois Good
marge11
12 Bart Simpson Springfield, Illinois Evil
bart12
13 Lisa Simpson Springfield, Illinois Good
lisa13
14 Maggie Simpson Springfield, Illinois Neutral
maggie14
15 Abe Simpson Springfield, Illinois Neutral
abe15
16 Mr. Burns Burns Manor Evil
mr16
17 Waylon Smithers Burns Manor Neutral
waylon17
18 Moe Szyslak Moe's Tavern Neutral
moe18
19 Darth Revan Evil
darth19
20 Spongebob Squarepants A Pineapple Under the Sea Good
spongebob20
21 Fitzwilliam Darcy Pemberley Good
fitzwilliam21
22 Nessie Loch Ness Evil
nessie22
23 The Cat in the Hat Neutral
the23
24 Freyja Folkvangr Good
freyja24
25 Odin Valhalla Good
odin25