finos / messageml-utils

MessageML is a markup language used by the Symphony Agent API for representing messages, including formatting (bold, italic, numbered and unnumbered lists etc.) and entity data representing structured objects.
https://docs.developers.symphony.com
Apache License 2.0
12 stars 28 forks source link

Add new attribute default value to PersonSelector #236

Closed symphony-mariacristina closed 3 years ago

symphony-mariacristina commented 3 years ago

Goal of this task will be to add a new optional attribute to PersonSelector Element.

Attribute name Optional Type Max length Attribute description
value true List of number 256 Contains the list of user IDs separated by a ',' Example:“[123]“"[123,789,654]"

Examples of usage:

<!-- MessageML -->
<messageML>
  <form id="all-elements">            
    <person-selector name="person-selector" placeholder="Type a person's name" value="[123]"/>    
    <button name="send-answers" type="action">Send Answers</button>
    <button type="reset">Reset Data</button>
  </form>
</messageML>

<!-- PresentationML -->
<div data-format="PresentationML" data-version="2.0"> 
  <form id="all-elements"> 
    <div class="person-selector" data-name="person-selector" data-placeholder="Type a person's name" date-value="[123]"></div> 
    <button type="action" name="send-answers">Send Answers</button> 
    <button type="reset">Reset Data</button> 
  </form> 
</div>
<!-- MessageML -->
<messageML>
  <form id="all-elements">            
    <person-selector name="person-selector" placeholder="Type a person's name" value="[123,789,654]"/>    
    <button name="send-answers" type="action">Send Answers</button>
    <button type="reset">Reset Data</button>
  </form>
</messageML>

<!-- PresentationML -->
<div data-format="PresentationML" data-version="2.0"> 
  <form id="all-elements"> 
    <div class="person-selector" data-name="person-selector" data-placeholder="Type a person's name" data-value="[123,789,654]"></div> 
    <button type="action" name="send-answers">Send Answers</button> 
    <button type="reset">Reset Data</button> 
  </form> 
</div>