public class EventOptions extends Object implements Serializable
EventOptions
is used to configure the custom event published by an
exported web component.Constructor and Description |
---|
EventOptions()
Create
EventOptions used to configure the custom event published
by an exported web component. |
EventOptions(boolean bubbles)
Create
EventOptions used to configure the custom event published
by an exported web component. |
EventOptions(boolean bubbles,
boolean cancelable,
boolean composed)
Create
EventOptions used to configure the custom event published
by an exported web component. |
Modifier and Type | Method and Description |
---|---|
boolean |
isBubbles()
Can the event bubbles up through the DOM or not.
|
boolean |
isCancelable()
Is the event is cancelable.
|
boolean |
isComposed()
Can the event bubble across the boundary between the shadow DOM and the
regular DOM.
|
public EventOptions()
EventOptions
used to configure the custom event published
by an exported web component.for all properties
,
for exporting web
components
public EventOptions(boolean bubbles)
EventOptions
used to configure the custom event published
by an exported web component.bubbles
- A Boolean indicating whether the event bubbles up through the DOM
or not.for all properties
,
for exporting web
components
public EventOptions(boolean bubbles, boolean cancelable, boolean composed)
EventOptions
used to configure the custom event published
by an exported web component.bubbles
- indicates whether the event bubbles up through the DOM or not.cancelable
- indicates whether the event is cancelable.composed
- indicates whether or not the event can bubble across the boundary
between the shadow DOM and the regular DOM.for exporting web
components
public boolean isBubbles()
public boolean isCancelable()
public boolean isComposed()
Copyright © 2020. All rights reserved.