Preparing search index...
The search index is not available
Wesib: Web Components Building Blocks
Wesib: Web Components Building Blocks
@wesib/wesib/testing
MockElement
Class MockElement
Experimental
Hierarchy
MockElement
Index
Constructors
constructor
Properties
_attributes
_target
owner
Document
Methods
add
Event
Listener
attribute
Changed
Callback
dispatch
Event
get
Attribute
get
Root
Node
has
Attribute
remove
Attribute
remove
Event
Listener
set
Attribute
Constructors
constructor
new
Mock
Element
(
__namedParameters
?:
{
ownerDocument
?:
Document
;
}
)
:
MockElement
Parameters
__namedParameters:
{
ownerDocument
?:
Document
;
}
= {}
Optional
owner
Document
?:
Document
Returns
MockElement
Properties
Private
Readonly
_attributes
_attributes
:
{
[name:
string
]
:
string
|
null
;
}
= {}
Type declaration
[
name:
string
]:
string
|
null
Private
Readonly
_target
_target
:
CustomHTMLElementClass
<
CustomHTMLElement
>
Readonly
owner
Document
owner
Document
:
Document
Methods
add
Event
Listener
add
Event
Listener
(
_type
:
string
, _listener
:
EventListener
)
:
void
Parameters
_type:
string
_listener:
EventListener
Returns
void
attribute
Changed
Callback
attribute
Changed
Callback
(
_name
:
string
, _oldValue
:
null
|
string
, _newValue
:
null
|
string
)
:
void
Parameters
_name:
string
_oldValue:
null
|
string
_newValue:
null
|
string
Returns
void
dispatch
Event
dispatch
Event
(
_event
:
Event
)
:
boolean
Parameters
_event:
Event
Returns
boolean
get
Attribute
get
Attribute
(
name
:
string
)
:
null
|
string
Parameters
name:
string
Returns
null
|
string
get
Root
Node
get
Root
Node
(
)
:
Node
Returns
Node
has
Attribute
has
Attribute
(
name
:
string
)
:
boolean
Parameters
name:
string
Returns
boolean
remove
Attribute
remove
Attribute
(
name
:
string
)
:
void
Parameters
name:
string
Returns
void
remove
Event
Listener
remove
Event
Listener
(
_type
:
string
, _listener
:
EventListener
)
:
void
Parameters
_type:
string
_listener:
EventListener
Returns
void
set
Attribute
set
Attribute
(
name
:
string
, value
:
string
)
:
void
Parameters
name:
string
value:
string
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Wesib:
Web
Components
Building
Blocks
@wesib/wesib
Attribute
Def
Attribute
Path
Attributes
Component
Slot
Dom
Property
Path
Element
Def
Render
Def
State
Property
Path
State
Updater
@wesib/wesib/testing
Mock
Element
constructor
_attributes
_target
owner
Document
add
Event
Listener
attribute
Changed
Callback
dispatch
Event
get
Attribute
get
Root
Node
has
Attribute
remove
Attribute
remove
Event
Listener
set
Attribute
Generated using
TypeDoc