Main Content

ModelAdvisor.List

Create list class

Description

Use instances of the ModelAdvisor.List class to create list-formatted outputs.

Creation

Syntax

list = ModelAdvisor.List

Description

list = ModelAdvisor.List creates a list object, list.

Object Functions

addItemAdd list items to Model Advisor results
setTypeSpecify Model Advisor list type

Example

Create Numbered and Bulleted Lists

You can create two types of lists: numbered and bulleted. The default list formatting is bulleted. Use the ModelAdvisor.List class to create and format lists. You can create lists with indented subsections, formatted as either numbered or bulleted.

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

topList = ModelAdvisor.List();
topList.addItem([ModelAdvisor.Text('Entry level 1',{'keyword','bold'}), subList]);
topList.addItem([ModelAdvisor.Text('Entry level 2',{'keyword','bold'}), subList]); 

Version History

Introduced in R2006b