Beispiel #1
0
        protected override async Task OnParametersSetAsync()
        {
            if (_id != -1)
            {
                var props = new FocusTrapZoneProps(this, _firstBumper, _lastBumper);
                await jsRuntime.InvokeVoidAsync("BlazorFluentUiFocusTrapZone.updateProps", _id, props);
            }

            await base.OnParametersSetAsync();
        }
Beispiel #2
0
        private async void RegisterFocusTrapZone()
        {
            var props = new FocusTrapZoneProps(this, _firstBumper, _lastBumper);

            _id = await jsRuntime.InvokeAsync <int>("BlazorFluentUiFocusTrapZone.register", props, DotNetObjectReference.Create(this));
        }