Skip to content

BlockSuite API Documentation / @blocksuite/blocks / createButtonPopper

Function: createButtonPopper()

createButtonPopper(reference, popperElement, stateUpdated, mainAxis?, crossAxis?): Object

Using attribute 'data-show' to control popper visibility.

css
selector {
  display: none;
}
selector[data-show] {
  display: block;
}

Parameters

reference: HTMLElement

popperElement: HTMLElement

stateUpdated: (state) => void= undefined

mainAxis?: number

crossAxis?: number

Returns

Object

dispose

dispose: () => void

Returns

void

hide

hide: () => void

Returns

void

show

show: () => void

Returns

void

toggle

toggle: () => void

Returns

void

Source

packages/blocks/src/root-block/edgeless/components/utils.ts:64


Generated using TypeDoc and typedoc-plugin-markdown.