type

ListItem

src @Js
class ListItem : Block

List item

constructors

fields

contentIndent

The indent of the content in columns (spaces or tab stop of 4) if available or null otherwise.

markerIndent

The indent of the marker such as - or 1. in columns (spaces or tab stop of 4) if available, or null otherwise.

Slot Details

contentIndent

src Int? contentIndent

The indent of the content in columns (spaces or tab stop of 4) if available or null otherwise. The content indent is counted from the beginning of the line and includes the marker on the first line

  • - Foo (content indent: 2)
  • - Foo (content indent: 3)
  • 1. Foo (content indent: 5)

Note that subsequent lines in the same list item need to be indented by at least the content indent to be counted as part of the list item.

make

src new make(Int? markerIndent, Int? contentIndent)

markerIndent

src Int? markerIndent

The indent of the marker such as - or 1. in columns (spaces or tab stop of 4) if available, or null otherwise.

  • - Foo (marker indent: 0)
  • - Foo (marker indent: 1)
  • 1. Foo (marker indent: 2)