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(); }
/// <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(); }