Example #1
0
        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();
        }
Example #2
0
        /// <inheritdoc/>
        protected override void OnInitialized()
        {
            // notify dropdown that the button is inside of it
            ParentDropdown?.NotifyButtonInitialized(this);

            // notify addons that the button is inside of it
            ParentAddons?.Register(this);

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

            if (LoadingTemplate == null)
            {
                LoadingTemplate = ProvideDefaultLoadingTemplate();
            }

            base.OnInitialized();
        }