new UIBase()
Methods
-
emit(eventName, args)
Layers/GoVerticalRemoteSensing/clases/UI/components/UIBase/index.ts, line 86 -
Emits an event with the provided arguments.
Name Type Description eventNamestring The name of the event.
argsany repeatable Arguments to pass to the event handlers.
-
getContainer(){HTMLDivElement}
Layers/GoVerticalRemoteSensing/clases/UI/components/UIBase/index.ts, line 43 -
Retrieves the container element.
Returns:
Type Description HTMLDivElement The container element. -
getEventHandlers(eventName){Array.<function()>}
Layers/GoVerticalRemoteSensing/clases/UI/components/UIBase/index.ts, line 104 -
Retrieves all event handlers for a given event.
Name Type Description eventNamestring The name of the event.
Returns:
Type Description Array.<function()> An array of event handlers. -
hasEvent(eventName){boolean}
Layers/GoVerticalRemoteSensing/clases/UI/components/UIBase/index.ts, line 95 -
Checks if an event has any registered handlers.
Name Type Description eventNamestring The name of the event.
Returns:
Type Description boolean True if the event has handlers, otherwise false. -
off(eventName, callback)
Layers/GoVerticalRemoteSensing/clases/UI/components/UIBase/index.ts, line 77 -
Removes an event handler. If no callback is provided, removes all handlers for the event.
Name Type Description eventNamestring optional The name of the event.
callbackfunction optional The callback function to remove.
-
on(eventName, callback)
Layers/GoVerticalRemoteSensing/clases/UI/components/UIBase/index.ts, line 59 -
Registers an event handler that will be invoked every time the event is emitted.
Name Type Description eventNamestring The name of the event.
callbackfunction The callback function to handle the event.
-
once(eventName, callback)
Layers/GoVerticalRemoteSensing/clases/UI/components/UIBase/index.ts, line 68 -
Registers a one-time event handler that will be invoked only the next time the event is emitted.
Name Type Description eventNamestring The name of the event.
callbackfunction The callback function to handle the event.
-
setContainer()
Layers/GoVerticalRemoteSensing/clases/UI/components/UIBase/index.ts, line 50 -
set the container element.
-
setVisibility(visible)
Layers/GoVerticalRemoteSensing/clases/UI/components/UIBase/index.ts, line 34 -
Sets the visibility of the UI component.
Name Type Description visibleboolean True to show the component, false to hide it.
