Skip to content

Access and alter internal DOM #331

@georges-hatem

Description

@georges-hatem

Hello,
I have an SVG with a text element and a unique ID.
This element represents the "badge counter" of the icon, and could contain numbers between 1 and 99.

Is there a way to find a DOM element by ID, change the text value and render it again to the control?

This would avoid having N different images for each value.

I did find a class called TSVGElement, but wasn't able to retrieve such an object from the image collection.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions