A collection of index topics.
Methods
Topicadd (name:
string[, sortBy:
string][, withProperties:
Object])
Creates a new index topic.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the topic. Note: This is the text that appears in the index. |
| sortBy | string | The string to sort this topic by instead of the topic name. Note: The actual topic text, rather than the sort order text, appears in the index. (Optional) |
| withProperties | Object | Initial values for properties of the new Topic (Optional) |
TopicanyItem ()
Returns any Topic in the collection.
number count ()
Displays the number of elements in the Topic.
Array of TopiceveryItem ()
Returns every Topic in the collection.
TopicfirstItem ()
Returns the first Topic in the collection.
Topicitem (index:
any)
Returns the Topic with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
TopicitemByName (name:
string)
Returns the Topic with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of TopicitemByRange (from:
any, to:
any)
Returns the Topics within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | Topic Long Integer String |
The Topic, index, or name at the beginning of the range. Can accept: Topic, Long Integer or String. |
| to | Topic Long Integer String |
The Topic, index, or name at the end of the range. Can accept: Topic, Long Integer or String. |
TopiclastItem ()
Returns the last Topic in the collection.
TopicmiddleItem ()
Returns the middle Topic in the collection.
TopicnextItem (obj:
Topic)
Returns the Topic whose index follows the specified Topic in the collection.
| Parameter | Type | Description |
|---|---|---|
| obj | Topic | The Topic whose index comes before the desired Topic. |
TopicpreviousItem (obj:
Topic)
Returns the Topic with the index previous to the specified index.
| Parameter | Type | Description |
|---|---|---|
| obj | Topic | The index of the Topic that follows the desired Topic. |
string toSource ()
Generates a string which, if executed, will return the Topic.
Element of:
Index.topics
IndexSection.topics
Topic.topics