@surdeddd/bottom-sheet
GitHub
Breaking changes
Preparing search index...
web-component
BottomSheetElement
Class BottomSheetElement
Hierarchy
BaseHTMLElement
BottomSheetElement
Index
Constructors
constructor
Accessors
observed
Attributes
sheet
State
snap
Methods
connected
Callback
disconnected
Callback
attribute
Changed
Callback
get
Engine
snap
To
open
close
expand
collapse
is
Top
depth
can
Dismiss
set
Radius
set
Max
Height
set
Allowed
add
Anchor
set
Scrim
Stages
recompute
Constructors
constructor
new
BottomSheetElement
()
:
BottomSheetElement
Returns
BottomSheetElement
Accessors
Static
observed
Attributes
get
observedAttributes
()
:
string
[]
Returns
string
[]
sheet
State
get
sheetState
()
:
EngineState
|
null
Returns
EngineState
|
null
snap
get
snap
()
:
string
|
null
Returns
string
|
null
set
snap
(
id
:
string
|
null
)
:
void
Parameters
id
:
string
|
null
Returns
void
Methods
connected
Callback
connectedCallback
()
:
void
Returns
void
disconnected
Callback
disconnectedCallback
()
:
void
Returns
void
attribute
Changed
Callback
attributeChangedCallback
(
name
:
string
,
_old
:
string
|
null
,
value
:
string
|
null
,
)
:
void
Parameters
name
:
string
_old
:
string
|
null
value
:
string
|
null
Returns
void
get
Engine
getEngine
()
:
BottomSheetEngine
|
null
Returns
BottomSheetEngine
|
null
snap
To
snapTo
(
id
:
string
)
:
Promise
<
void
>
Parameters
id
:
string
Returns
Promise
<
void
>
open
open
(
id
?:
string
)
:
Promise
<
void
>
Parameters
Optional
id
:
string
Returns
Promise
<
void
>
close
close
(
reason
?:
CloseReason
)
:
Promise
<
void
>
Parameters
Optional
reason
:
CloseReason
Returns
Promise
<
void
>
expand
expand
()
:
Promise
<
void
>
Returns
Promise
<
void
>
collapse
collapse
()
:
Promise
<
void
>
Returns
Promise
<
void
>
is
Top
isTop
()
:
boolean
Returns
boolean
depth
depth
()
:
number
Returns
number
can
Dismiss
canDismiss
()
:
boolean
Returns
boolean
set
Radius
setRadius
(
r
:
string
|
number
)
:
void
Parameters
r
:
string
|
number
Returns
void
set
Max
Height
setMaxHeight
(
h
:
string
|
number
)
:
void
Parameters
h
:
string
|
number
Returns
void
set
Allowed
setAllowed
(
ids
:
string
[]
,
snap
?:
string
)
:
void
Parameters
ids
:
string
[]
Optional
snap
:
string
Returns
void
add
Anchor
addAnchor
(
opts
:
AnchorOptions
)
:
()
=>
void
Parameters
opts
:
AnchorOptions
Returns
()
=>
void
set
Scrim
Stages
setScrimStages
(
opts
:
ScrimStagesOptions
|
null
)
:
()
=>
void
Parameters
opts
:
ScrimStagesOptions
|
null
Returns
()
=>
void
recompute
recompute
()
:
void
Returns
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
observed
Attributes
sheet
State
snap
Methods
connected
Callback
disconnected
Callback
attribute
Changed
Callback
get
Engine
snap
To
open
close
expand
collapse
is
Top
depth
can
Dismiss
set
Radius
set
Max
Height
set
Allowed
add
Anchor
set
Scrim
Stages
recompute
GitHub
Breaking changes
@surdeddd/bottom-sheet
Loading...