Class DriveDataSourceSpec

DriveDataSourceSpec

Holds a set of DriveItemType objects that are displayed in a row.

const driveDataSourceSpec =
    CardService.newDriveDataSourceSpec()
     .addItemType(CardService.DriveItemType.DOCUMENTS)
     .addItemType(CardService.DriveItemType.FORMS);

Methods

MethodReturn typeBrief description
addItemType(driveItemType)DriveDataSourceSpecAdds a driveItemType to allowed item types list.

Detailed documentation

addItemType(driveItemType)

Adds a driveItemType to allowed item types list.

Parameters

NameTypeDescription
driveItemTypeDriveItemTypeThe driveItemType to add.

Return

DriveDataSourceSpec — This object, for chaining.