Skip to content

VisibleTagHelper

StrutTower edited this page Nov 11, 2022 · 1 revision

Easily hide an element based on the supplied boolean

Usage

<div asp-visible="@Boolean"></div>

-- output --

<div hidden></div>

Attributes

Name Required Data Type Description
asp-visible Required Boolean The boolean to set if the element should be visible or hidden