Skip to content
Sitemason - Build on Us

List Class Reference

Methods

addListColumnAfter

(list column object) addListColumnAfter( object );
A list column config object defining a new column.
The new list column object.

Information

addListColumnAfter() creates a new list column, placing it after the current column.  The object passed should contain a "label" and a "name."

	var newColumn = column.addListColumnAfter(
    {
        label:  'Subtitle',
        name:   'subtitle'
    }
);	

addListColumnBefore

(list column object) addListColumnBefore( object );
A list column config object defining a new column.
The new list column object.

Information

addListColumnBefore() creates a new list column, placing it before the current column.  The object passed should contain a "label" and a "name."

	var newColumn = column.addListColumnBefore(
    {
        label:  'Subtitle',
        name:   'subtitle'
    }
);	

remove

remove();

Information

Removes the current list column.

	column.remove();	

replace

(list column object) replace( object );
A list column config object defining a new column.
The new list column object.

Information

replace() replaces the current column with a new list column.  The object passed should contain a "label" and a "name."

	var newColumn = column.replace(
    {
        label:  'Subtitle',
        name:   'subtitle'
    }
);	

set

set (string, string)
The first parameter is the name of the value to be set. The second is the value to which it should be set.

Information

Change an attribute of a column object. Currently, only changing the 'label' is supported.

	column.set('label', 'Headline');