'data-hide-if not working as expected for ViewBag variable
I have a variable called isInternal within my ViewBag that I am trying to base an HTML conditional off of. If isInternal is true then I want to hide the tooltip. See my HTML below with "data-hide-if"... however this is not working as I would expect. Any help much appreciated..
@{
ViewBag.Title = "Data Explorer";
var roles = ApplicationUserHelpers.Roles();
var isInternal = roles.Contains(SecurityConstants.Roles.Admin) ||
roles.Contains(SecurityConstants.Roles.SoilManager);
}
<span id="name-tooltip" class="data-tooltip" data-toggle="tooltip" data-hide-if="isInternal" title="" data-placement="bottom" data-original-title="Data visualized by any time period less than a month will not include available bill water usage details. Please select a month time frame to see available bill data.">
<i class="fa fa-question-circle"></i>
</span>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
