API > @blocksuite/blocks > HoverController
Class: HoverController ​
Implements ​
ReactiveController
Constructors ​
constructor ​
new HoverController(
host
,onHover
,hoverOptions
?):HoverController
Parameters ​
Parameter | Type |
---|---|
host | ReactiveControllerHost |
onHover | function |
hoverOptions ? | Partial < HoverOptions > |
Returns ​
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:69
Properties ​
_abortController ​
private
optional
_abortController:AbortController
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:50
_disposables ​
protected
_disposables:DisposableGroup
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:47
_hoverOptions ​
private
readonly
_hoverOptions:HoverOptions
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:56
_onHover ​
private
readonly
_onHover:function
Parameters ​
Parameter | Type |
---|---|
options | OptionsParams |
Returns ​
null
| HoverPortalOptions
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:53
_portal ​
private
optional
_portal:HTMLDivElement
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:52
_setReference ​
private
optional
_setReference:function
Parameters ​
Parameter | Type |
---|---|
element ? | Element |
Returns ​
void
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:51
host ​
host:
ReactiveControllerHost
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:48
Accessors ​
portal ​
get
portal():undefined
|HTMLDivElement
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:65
setReference ​
get
setReference():function
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:58
Methods ​
hostConnected ​
hostConnected():
void
Returns ​
void
Implementation of ​
ReactiveController.hostConnected
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:79
hostDisconnected ​
hostDisconnected():
void
Returns ​
void
Implementation of ​
ReactiveController.hostDisconnected
Defined In ​
packages/blocks/src/_common/components/hover/controller.ts:138