Module nwcOptText

A nwcItem supporting object class for simple text.

Type nwcOptText

nwcOptText.ID

Contains the name of the object type (nwcOptText)

nwcOptText.Text

Object property containing the actual option data

nwcOptText:WriteUsing(writeFunc)

Standard output function with a user specified write function.

nwcOptText:__tostring()

Provides an automatic converting to string.

nwcOptText.new(fieldtxt)

Constructs a new nwcOptText object.

Type nwcOptText

Field(s)

#string nwcOptText.ID

Contains the name of the object type (nwcOptText)

#string nwcOptText.Text

Object property containing the actual option data

nwcOptText:WriteUsing(writeFunc)

Standard output function with a user specified write function.

Parameter

  • writeFunc : The function that will be used to write the pieces that constitute the reconstructed text.

nwcOptText:__tostring()

Provides an automatic converting to string.

Return value

#string: the raw string representation of the nwcOptText object.

nwcOptText.new(fieldtxt)

Constructs a new nwcOptText object.

Parameter

  • #string fieldtxt : The raw option field text.

Return value

#nwcOptText: A new nwcOptText object.