Exemplo n.º 1
0
        public static ValueTask <string> HandlePopperInstanceAsync(this IJSRuntime jsRuntime,
                                                                   ElementReference anchorRef,
                                                                   ElementReference contentRef,
                                                                   ElementReference anchorWidthRef,
                                                                   PositionType position,
                                                                   string offset,
                                                                   bool isContentVisible,
                                                                   bool isPreventOverflow,
                                                                   bool isFixed,
                                                                   bool isBoundaryBody,
                                                                   bool isKeepAnchorWidth)
        {
            var positionString = position.ToDescriptionString();

            return(jsRuntime.InvokeAsync <string>("customComponentHandler.handlePopperInstance",
                                                  anchorRef,
                                                  contentRef,
                                                  anchorWidthRef,
                                                  positionString,
                                                  offset,
                                                  isContentVisible,
                                                  isPreventOverflow,
                                                  isFixed,
                                                  isBoundaryBody,
                                                  isKeepAnchorWidth));
        }
Exemplo n.º 2
0
 public static ValueTask <object> ShowTippyTooltip(this IJSRuntime jsRuntime,
                                                   ElementReference targetRef,
                                                   ElementReference contentRef,
                                                   PositionType position,
                                                   TriggerType trigger,
                                                   int duration,
                                                   int showDelay,
                                                   int hideDelay,
                                                   bool hasArrow) =>
 jsRuntime.InvokeAsync <object>("customComponentHandler.showTippyTooltip",
                                targetRef,
                                contentRef,
                                position.ToDescriptionString(),
                                trigger.ToDescriptionString(),
                                duration,
                                showDelay,
                                hideDelay,
                                hasArrow);