setType

Class: ModelAdvisor.List
Package: ModelAdvisor

Specify list type

Syntax

setType(list_obj, listType)

Description

setType(list_obj, listType) specifies the type of list the ModelAdvisor.List constructor creates.

Input Arguments

list_objInstantiation of the ModelAdvisor.List class
listType

Specifies the list type:

  • numbered

  • bulleted

Examples

subList = ModelAdvisor.List();
subList.setType('numbered')
subList.addItem(ModelAdvisor.Text('Sub entry 1', {'pass','bold'}));
subList.addItem(ModelAdvisor.Text('Sub entry 2', {'pass','bold'}));
Was this topic helpful?