Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tag

Description

Allowed Attributes

<div data-format="PresentationML" data-version="2.0">presentationML</div>The root element of a PresentationML message. The value of the data-format attribute MUST be PresentationML and the data-version attribute MUST be present.

data-format (required)

data-version (required)

<divclass="style" data-entity-id="jsonId">presentationML</div>

Structure and styling. Where the value of class is entity the data-entity-id attribute MUST be present and MUST refer to an element in the associated EntityJSON data structure.

Where the class is absent or any value other than entity, the data-entity-id attribute MUST NOT be present.

If the data-icon-src or data-accent-color attributes are set, the class attribute MUST be card.

class

data-entity-id

data-icon-src

data-accent-color

<spanclass="style">

Styling

Where the class is absent or any value other than entity, the data-entity-id attribute MUST NOT be present.

class

<span class="entity" data-entity-id="keyword123">#tag</span>Hashtag. The associated EntityJson data identifies this as a hashtag as well as causing the appropriate styling to be applied. The content MUST start with the character #. The data-entity-id attribute value MUST refer to an element in the associated EntityJSON data.

class (required)

data-entity-id (required)

<span class="entity" data-entity-id="keyword123">$tag</span>Cashtag. The associated EntityJson data identifies this as a cashtag as well as causing the appropriate styling to be applied. The content MUST start with the character $. The data-entity-id attribute value MUST refer to an element in the associated EntityJSON data.

class (required)

data-entity-id (required)

<span class="entity" data-entity-id="mention123">@Pretty Name</span>

Mention. The associated EntityJson data identifies this as a mention as well as causing the appropriate styling to be applied. The content MUST start with the character @.The data-entity-id attribute value MUST refer to an element in the associated EntityJSON data.

When submitted at the API Agent the content (@Pretty Name) will be validated and the message rejected if it does not match the correct name for the specified user. API callers may find it more convenient to use the MessageML <mention> tag instead.


class (required)

data-entity-id (required)

<pclass="style">text</p>Paragraph, contains text to be rendered as a single block of text.

class

<bclass="style">text</b>Bold, contains text to be rendered in an emphasized way, by presentation as a bold font if possible.

class

<iclass="style">text</i>Italic, contains text to be rendered in a (secondary) emphasized way, by presentation as an italic font if possible.

class

<h1>text</h1> ... <h6>text</h6>

Section heading of level 1-6.class
<br/>Line break.


<hr/>Horizontal rule.
<a class="style" href="url">Link Text</a>Hyperlink to an external URL. Supported URI schemes need to be explicitly whitelisted by the pod.

class

href

<ulclass="style"><liclass="style">List Item 1<li/><liclass="style">List Item 2<li/></ul>Unordered list, should be rendered as bullet points if possible.

class

<olclass="style"><liclass="style">List Item 1<li/><liclass="style">List Item 2<li/></ol>Ordered list, should be rendered as a numbered list if possible.

class

<tableclass="style">

<thead>

<trclass="style"><thclass="style">Col 1</th><thclass="style">Col 2</th></tr>

</thead>

<tbody>

<trclass="style"><tdclass="style">Cell 1,1</td><tdclass="style">Cell 1,2</td></tr>

</tbody>

<tfoot>

<tr class="style"><td class="style">Footer 1,1</td><td class="style">Footer 1,2</td></tr>

</tfoot>

</table>

Simple table.

class


<img src="url"/>
Inline image. Note that size limits will be placed on this element to fit within the wider UI.

src (required)

class

<audio src="https://asset.symphony.com/symphony/audio/chime.mp3" autoplay="true" />Chime. Initially only chime.mp3 will be permitted as a source attribute. The autoplay attribute is required.

src (required)

autoplay (required)

...