NodeType
public enum NodeType : String, Codable
A descriptor of the node’s type, which can be used to determine rendering heuristics.
-
The top-level node type.
Declaration
Swift
case document
-
Table container
Declaration
Swift
case table
-
A table container row
Declaration
Swift
case tableRow = "table-row"
-
A table row header cell
Declaration
Swift
case tableRowHeaderCell = "table-header-cell"
-
A table row regular cell
Declaration
Swift
case tableRowCell = "table-cell"
-
A block of text, the parent node for inline text nodes.
Declaration
Swift
case paragraph
-
A string of text which may contain marks.
Declaration
Swift
case text
-
A large heading.
Declaration
Swift
case h1 = "heading-1"
-
A sub-heading.
Declaration
Swift
case h2 = "heading-2"
-
An h3 heading.
Declaration
Swift
case h3 = "heading-3"
-
An h4 heading.
Declaration
Swift
case h4 = "heading-4"
-
An h5 heading.
Declaration
Swift
case h5 = "heading-5"
-
An h6 heading.
Declaration
Swift
case h6 = "heading-6"
-
A blockquote
Declaration
Swift
case blockquote
-
A horizontal rule break.
Declaration
Swift
case horizontalRule = "hr"
-
An orderered list.
Declaration
Swift
case orderedList = "ordered-list"
-
An unordered list.
Declaration
Swift
case unorderedList = "unordered-list"
-
A list item in either an ordered or unordered list.
Declaration
Swift
case listItem = "list-item"
-
A block node with a Contentful entry embedded inside.
Declaration
Swift
case embeddedEntryBlock = "embedded-entry-block"
-
A block node with a Contentful aset embedded inside.
Declaration
Swift
case embeddedAssetBlock = "embedded-asset-block"
-
An inline node with a Contentful entry embedded inside.
Declaration
Swift
case embeddedEntryInline = "embedded-entry-inline"
-
A hyperlink to a URI.
Declaration
Swift
case hyperlink
-
A hyperlink to a Contentful entry.
Declaration
Swift
case entryHyperlink = "entry-hyperlink"
-
A hyperlink to a Contentful asset.
Declaration
Swift
case assetHyperlink = "asset-hyperlink"