예제 #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();
        }
예제 #2
0
        private async void RegisterFocusTrapZone()
        {
            var props = new FocusTrapZoneProps(this, _firstBumper, _lastBumper);

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