hyTags
HomeHome DocumentationDocumentation

event-get

Gets a property value from the event object.
Parameter
Type
Description
self
Event
The event object.
key
String
The property key to retrieve.
type
Type
The expected type of the property value.
return
T
The property value with the specified type.
Test Case:Get event type property
    <div></div>
    
    <event-new name="custom">
    <event-get key="type" type="string">
    <assert-equal value="custom" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed