コード例 #1
0
ファイル: BaseButton.cs プロジェクト: qcjxberin/Blazorise
        protected override void OnInit()
        {
            // notify dropdown that the button is inside of it
            ParentDropdown?.Register(this);

            base.OnInit();
        }
コード例 #2
0
ファイル: Button.razor.cs プロジェクト: komirineni/Blazorise
        protected override void OnInitialized()
        {
            // notify dropdown that the button is inside of it
            ParentDropdown?.Register(this);

            ExecuteAfterRender(async() =>
            {
                await JSRunner.InitializeButton(ElementId, ElementRef, PreventDefaultOnSubmit);
            });

            base.OnInitialized();
        }