Deprecated. This class is deprecated and should not be used in new scripts.
A Sites Column - a column from a Sites List page.
Deprecated methods
Method | Return type | Brief description |
---|---|---|
| void | Deletes this column. |
| String | Gets the name of this column. |
|
| Returns the List Page this column belongs to. |
|
| Sets the name of this column. |
Deprecated methods
deleteColumn()
deleteColumn()
Deprecated. This function is deprecated and should not be used in new scripts.
Deletes this column.
var page = SitesApp.getSite('example.com', 'mysite').getChildByName('mylistpage'); var columns = page.getColumns(); columns[0].deleteColumn();
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://sites.google.com/feeds
getName()
getName()
Deprecated. This function is deprecated and should not be used in new scripts.
Gets the name of this column.
var page = SitesApp.getSite('example.com', 'mysite').getChildByName('mylistpage'); var columns = page.getColumns(); var name = columns[0].getName();
Return
String
— the column name
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://sites.google.com/feeds
getParent()
getParent()
Deprecated. This function is deprecated and should not be used in new scripts.
Returns the List Page this column belongs to.
var page = SitesApp.getSite('example.com', 'mysite').getChildByName('mylistpage'); var columns = page.getColumns(); // This returns a reference to page var parentPage = columns[0].getParent();
Return
— the page this column belongs toPage
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://sites.google.com/feeds
setName(name)
setName(name)
Deprecated. This function is deprecated and should not be used in new scripts.
Sets the name of this column.
var page = SitesApp.getSite('example.com', 'mysite').getChildByName('mylistpage'); var columns = page.getColumns(); columns[0].setName("New Name");
Parameters
Name | Type | Description |
---|---|---|
name | String | the new name |
Return
— this Column for chainingColumn
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://sites.google.com/feeds