feat: more docs
This commit is contained in:
@@ -14,11 +14,16 @@ function TreeNode({ doc }: { doc: Doc }) {
|
||||
return (
|
||||
<li className={styles.listItem}>
|
||||
{hasChildren ? (
|
||||
<div
|
||||
onClick={() => setIsExpanded(!isExpanded)}
|
||||
className={styles.expandable}
|
||||
<div className={styles.expandable}>
|
||||
<a
|
||||
href={`#${doc.title
|
||||
.replaceAll(' ', '-')
|
||||
.toLowerCase()}`}
|
||||
className={styles.link}
|
||||
>
|
||||
<a className={styles.link}>{doc.title}</a>
|
||||
{doc.title}
|
||||
</a>
|
||||
<div onClick={() => setIsExpanded(!isExpanded)}>
|
||||
{isExpanded ? (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -49,6 +54,7 @@ function TreeNode({ doc }: { doc: Doc }) {
|
||||
</svg>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<a
|
||||
href={`#${doc.title
|
||||
|
||||
@@ -13,19 +13,19 @@ These are objects representing a content record in your instance. You can create
|
||||
---
|
||||
|
||||
- App Id
|
||||
- integer
|
||||
- number
|
||||
- The id of the app or survey.
|
||||
|
||||
---
|
||||
|
||||
- recordId
|
||||
- integer
|
||||
- number
|
||||
- The id of the record.
|
||||
|
||||
---
|
||||
|
||||
- fieldData
|
||||
- array
|
||||
- An array of field value objects.
|
||||
- object[]
|
||||
- An array of [Field Value](#field-values) objects.
|
||||
|
||||
{% /table %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Field Values {% #field-values %}
|
||||
|
||||
These are objects representing a field value in a record. They will comprise the `fieldData` array in a [Record](#records) object.
|
||||
These are objects representing a field value in a record. They will comprise the `fieldData` array in a [Record](#records) object. The `type` property will determine what the type and structure of the `value` property will be.
|
||||
|
||||
## Field Value Properties
|
||||
|
||||
@@ -19,7 +19,7 @@ These are objects representing a field value in a record. They will comprise the
|
||||
---
|
||||
|
||||
- fieldId
|
||||
- integer
|
||||
- number
|
||||
- The id of the field.
|
||||
|
||||
---
|
||||
@@ -29,3 +29,83 @@ These are objects representing a field value in a record. They will comprise the
|
||||
- The value of the field.
|
||||
|
||||
{% /table %}
|
||||
|
||||
### Field Value Types
|
||||
|
||||
{% table .propertiesTable %}
|
||||
|
||||
- Type
|
||||
- Description
|
||||
- Value Data Type
|
||||
|
||||
---
|
||||
|
||||
- String
|
||||
- A string value.
|
||||
- `string`
|
||||
|
||||
---
|
||||
|
||||
- Integer
|
||||
- An integer value.
|
||||
- `number`
|
||||
|
||||
---
|
||||
|
||||
- Decimal
|
||||
- A decimal value.
|
||||
- `number`
|
||||
|
||||
---
|
||||
|
||||
- Date
|
||||
- A date value.
|
||||
- `string`
|
||||
|
||||
---
|
||||
|
||||
- TimeSpan
|
||||
- A time span value.
|
||||
- `string`
|
||||
|
||||
---
|
||||
|
||||
- Guid
|
||||
- A GUID value.
|
||||
- `string`
|
||||
|
||||
---
|
||||
|
||||
- StringList
|
||||
- A list of string values.
|
||||
- `string[]`
|
||||
|
||||
---
|
||||
|
||||
- IntegerList
|
||||
- A list of integer values.
|
||||
- `number[]`
|
||||
|
||||
---
|
||||
|
||||
- GuidList
|
||||
- A list of GUID values.
|
||||
- `string[]`
|
||||
|
||||
---
|
||||
|
||||
- AttachmentList
|
||||
- A list of [Attachment](#attachment) values.
|
||||
- `object[]`
|
||||
|
||||
---
|
||||
|
||||
- ScoringGroupList
|
||||
- A list of [Scoring Group](#scoring-group) values.
|
||||
- `object[]`
|
||||
|
||||
---
|
||||
|
||||
- FileList
|
||||
- A list of file values.
|
||||
- `number[]`
|
||||
|
||||
Reference in New Issue
Block a user