Attribute Type Class
By default, an attribute can take any value type: a text, a number, a date, true / false, a link, a user mention, or any user-defined object type. All of the values are collected into a JSON array during conversion. Class dsattrtype-<type> is used to restrict an attribute value to a certain type. For example, to indicate that an attribute quantity can only take a numeric value, you should add class dsattrtype-number to your markup:
<
td
class
=
"dsattr-quantity dsattrtype-number"
>
<
ac
:placeholder>Quantity</
ac
:placeholder>
</
td
>
If you need to restrict an attribute to a user-defined type, you should specify the type name of the class:
<
table
class
=
"dsattr-participants dsattrtype-user-details"
>
...
<
tr
class
=
"dsobject dsobjtype-user-details"
>
...
<
td
class
=
"dsattr-lastname"
>
<
ac
:placeholder>Last name</
ac
:placeholder>
</
td
>
<
td
class
=
"dsattr-firstname"
>
<
ac
:placeholder>First name</
ac
:placeholder>
</
td
>
...
</
tr
>
...
</
table
>
Some type names are reserved:
dsattrtype-number
dsattrtype-date
dsattrtype-user
dsattrtype-page
dsattrtype-link
dsattrtype-boolean
dsattrtype-text
dsattrtype-number
The class dsattrtype-number indicates that a table cell should contain a number.
dsattrtype-date
The class dsattrtype-date indicates that a table cell should contain a date. To enter a date, use the standard Confluence date picker.
dsattrtype-user
The class dsattrtype-user indicates that a table cell should contain a Confluence user mention. To enter a user mention, use the standard user picker:
dsattrtype-page
The class dsattrtype-page indicates that a table cell should contain a link to a Confluence page. Use standard link dialog to add a page link:
dsattrtype-link
The class dsattrtype-link indicates that a table cell should contain a link to a web page. Use link dialog or just copy-paste a web page URL:
dsattrtype-boolean
The class dsattrtype-boolean indicated that a table cell should contain true or false. Use Confluence tasklist item to enter a boolean value:
dsattrtype-text
The class dsattrtype-text indicates that a table cell should contain a text value. All other values (objects, dates, links, etc.) will be discarded during the conversion.