Menu

new field with type="AttributeHTML" and add style to it

Marah Alh
2023-12-19
2023-12-19
  • Marah Alh

    Marah Alh - 2023-12-19

    I define new field

    <field id="request_workflow" xsi:type="AttributeHTML" _delta="define">
    

    and I set it in the extension:

    $aContextArgs['this->object()']->Set("request_workflow","<span style=\"border-style: solid; color: red\" href=\"#\">team</span>");
    

    the border doesn't applied, only the color changed.. how can add border around my text?

    I tried to define new css class it in "bootstrap.min.css" but also doesn't work.

     

    Last edit: Marah Alh 2023-12-19
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-12-19

    Your HTML is not correct to start with. You start with a "span" tag and end with a "p" tag.
    Also note that at some points, iTop may strip (sanitize) a lot of html and inline css.

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.