Skip to main content

Interface: IElementProxy

Defined in: src/MyopComponent.tsx:79

Element proxy for accessing/modifying the component's DOM element

Properties

get()

get: (path) => Promise<any>

Defined in: src/MyopComponent.tsx:83

Get a property from the element (e.g., element.style.background) - returns Promise

Parameters

path

string

Returns

Promise<any>


set()

set: (path, value) => void

Defined in: src/MyopComponent.tsx:81

Set a property on the element (e.g., element.style.background = 'red')

Parameters

path

string

value

any

Returns

void


style

style: object

Defined in: src/MyopComponent.tsx:85

Style proxy for convenient access

get()

get: (property) => Promise<string>

Parameters
property

string

Returns

Promise<string>

set()

set: (property, value) => void

Parameters
property

string

value

string

Returns

void