Methods
createAtom(name, valueopt, payloadopt, markupsopt) → {Atom}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
String | |||
value |
String |
<optional> |
'' | |
payload |
Object |
<optional> |
{} | |
markups |
Array.<Markup> |
<optional> |
[] |
- Source:
Returns:
- Type
- Atom
createCardSection(name, payloadopt) → {CardSection}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
String | |||
payload |
Object |
<optional> |
{} |
- Source:
Returns:
- Type
- CardSection
createMarker(value, markupsopt) → {Marker}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
value |
String | |||
markups |
Array.<Markup> |
<optional> |
[] |
- Source:
Returns:
- Type
- Marker
createMarkup(tagName, attributes) → {Markup}
Parameters:
Name | Type | Description |
---|---|---|
tagName |
String | |
attributes |
Object | Key-value pairs of attributes for the markup |
- Source:
Returns:
- Type
- Markup
createMarkupSection(tagNameopt, markersopt) → {MarkupSection}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
tagName |
tagName |
<optional> |
'P' | |
markers |
Array.<Marker> |
<optional> |
[] |
- Source:
Returns:
- Type
- MarkupSection
createPost() → {Post}
- Source:
Returns:
A new, blank post
- Type
- Post