protected override void OnInit() { if (Type == RazorInputType.Price) { JSInteropManager.AddFunction("ApplyMask"); } base.OnInit(); }