Column Display
Name | Movie Genre | Director | |
---|---|---|---|
Star Wars | SCI-FI | Directed by George Lucas | static value |
Reservoir Dogs | THRILLER | Directed by Quentin Tarantino | static value |
Airplane! | SLAPSTICK | Directed by David and Jerry Zucker and Jim Abrahams | static value |
@(await Html
.SimpleGrid(Model.Take(3))
.AddColumn(col => col
.For(movie => movie.Name))
.AddColumn(col => col
.For(movie => movie.Genre)
.DisplayAs(movie => movie.Genre.ToUpper()))
.AddColumn(col => col
.Header("Director")
.DisplayAs(movie => $"Directed by {movie.Director}"))
.AddColumn(col => col
.Display("static value"))
.RenderAsync())