@namespace DnsmasqWebUI.Components.EffectiveConfig.CustomDisplays @using DnsmasqWebUI.Models.Dnsmasq @using DnsmasqWebUI.Models.Dnsmasq.EffectiveConfig @inherits EffectiveConfigValueDisplayBase @* do-0x20-encode / no-0x20-encode: tri-state. Switch shows Enabled vs not-Enabled; uncheck maps back to Default when that was the value at activation, else Disabled. *@ @if (IsActiveEditor && Descriptor.GetSource()?.IsReadOnly != true) { var isOn = GetState() == ExplicitToggleState.Enabled;