Row Modifier

« CSS Options »
Name Movie Director Movie Genre Released
Star Wars George Lucas Sci-Fi 1997
Reservoir Dogs Quentin Tarantino Thriller 1992
Airplane! David and Jerry Zucker and Jim Abrahams Slapstick 1980
Terminator James Cameron Action 1984
Terminator 2: Judgement Day James Cameron Action 1991
Wonder Woman 1984 Action 2020
Close Encounters of the Third Kind Steven Spielberg Sci-Fi 1997
Rocky John G. Avildsen Action
Brave Heart Mel Gibson Action
Movie with <b>bold</b> This Guy Test
The Godfather The Godfather Mob 1972
Citizen Kane Orson Welles Drama 1941
The Shawshank Redemption Frank Drabont Drama 1994
Pulp Fiction Quentin Tarantino Action 1994
Casablanca Michael Curtiz Drama 1942
2001: A Space Odyssey Stanley Kubrick Sci-Fi 1968
@(await Html
    .SimpleGrid(Model)

    .AddColumnsForModel()

    .AddRowModifier(
        movie => movie.Director.Contains("James"), 
        css => css.AddStyle("background-color:red"))

    .AddRowModifier(
        movie => movie.Name.Contains("Rocky"), 
        css => css.AddStyle("background-color:green"))

    .RenderAsync()
)