예제 #1
0
        public static void DrawChangeLocationElement(HTMLElement element)
        {
            var className = $"RPIG.{element.GetAttribute(FUNCTION)}";

            if (!element.TagName.Equals("a", StringComparison.OrdinalIgnoreCase))
            {
                element.Cast <HTMLButtonElement>().Disabled = !HtmlAttributesLogic.CallFunction <bool>($"{className}.IsActive");
            }

            element.OnClick       = _ => App.ExecuteChangeStateLogic(className);
            element.Style.Display = HtmlAttributesLogic.CallFunction <bool>($"{className}.IsHide")
                                ? "none"
                                : "inline";
        }