We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Adding class to existing POI…?

Home Forums Puzzles Adding class to existing POI…?

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23060
    David Duperron
    Customer

    Hi!
    I was wondering if there was a possibility to add a custom class to a pre-existing annotation (POI), either on top of the default “v3D-annotation” class, or in addition to it…? This is to be able to have several styles of annotations.
    I tried using the “set attribute” puzzle, with the “classname” attribute to one existing PI, but without any success for now…
    Is it possible? Or is there some other way to do it, before to switch to custom bits of html that I would bind to my 3D objects…?
    Thanks for the help!
    Cheers

    David

    #23062
    David Duperron
    Customer

    EDIT:
    I found a solution with a CSS selector that looks for a specific substring inside the “id”, which works perfectly…

    .v3d-annotation[id*="-MM-"] {
        background-color: blue;
    }

    will style all my annotations with “-MM-” in the id name with a blue background. I did not need anything more! :)

    #23066

    Glad you found a solution! :good:

    Chief 3D Verger | LinkedIn | Twitter

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.