Update css reference mention in versions >= 3.0 (#22382)
parent
796c2dbb9e
commit
b2ec94e544
|
@ -249,13 +249,13 @@ The preceding code makes the following changes:
|
|||
```
|
||||
|
||||
* Adds a **Courses** column that displays courses taught by each instructor. See [Explicit line transition](xref:mvc/views/razor#explicit-line-transition) for more about this razor syntax.
|
||||
* Adds code that dynamically adds `class="success"` to the `tr` element of the selected instructor and course. This sets a background color for the selected row using a Bootstrap class.
|
||||
* Adds code that dynamically adds `class="table-success"` to the `tr` element of the selected instructor and course. This sets a background color for the selected row using a Bootstrap class.
|
||||
|
||||
```html
|
||||
string selectedRow = "";
|
||||
if (item.CourseID == Model.CourseID)
|
||||
{
|
||||
selectedRow = "success";
|
||||
selectedRow = "table-success";
|
||||
}
|
||||
<tr class="@selectedRow">
|
||||
```
|
||||
|
@ -530,13 +530,13 @@ The preceding code makes the following changes:
|
|||
|
||||
* Adds a **Courses** column that displays courses taught by each instructor. See [Explicit line transition](xref:mvc/views/razor#explicit-line-transition) for more about this razor syntax.
|
||||
|
||||
* Adds code that dynamically adds `class="success"` to the `tr` element of the selected instructor and course. This sets a background color for the selected row using a Bootstrap class.
|
||||
* Adds code that dynamically adds `class="table-success"` to the `tr` element of the selected instructor and course. This sets a background color for the selected row using a Bootstrap class.
|
||||
|
||||
```html
|
||||
string selectedRow = "";
|
||||
if (item.CourseID == Model.CourseID)
|
||||
{
|
||||
selectedRow = "success";
|
||||
selectedRow = "table-success";
|
||||
}
|
||||
<tr class="@selectedRow">
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue