Provides access to list data, selection, and list-level operations.
Available via tisa.list in list custom scripts.
tisa.list
// Access list itemsconst items = tisa.list.items;// Work with selectionconst selectedIds = tisa.list.selection.selectedItems;tisa.list.selection.select(4);tisa.list.selection.deselectAll();// Reload list dataawait tisa.list.reload(); Copy
// Access list itemsconst items = tisa.list.items;// Work with selectionconst selectedIds = tisa.list.selection.selectedItems;tisa.list.selection.select(4);tisa.list.selection.deselectAll();// Reload list dataawait tisa.list.reload();
Readonly
Current list items loaded by the list provider. Returns undefined when items have not been fetched yet.
undefined
const items = tisa.list.items;if (items) { tisa.log.info("Loaded " + items.length + " items");} Copy
const items = tisa.list.items;if (items) { tisa.log.info("Loaded " + items.length + " items");}
Provides access to the list's selected items.
const ids = tisa.list.selection.selectedItems;tisa.list.selection.select([1, 2, 3]);tisa.list.selection.deselectAll();const data = tisa.list.selection.selectedItemsData; Copy
const ids = tisa.list.selection.selectedItems;tisa.list.selection.select([1, 2, 3]);tisa.list.selection.deselectAll();const data = tisa.list.selection.selectedItemsData;
Reloads list items by fetching incremental changes from SharePoint and clears the current selection.
async function btnRefreshCommand() { await tisa.list.reload();} Copy
async function btnRefreshCommand() { await tisa.list.reload();}
Provides access to list data, selection, and list-level operations.
Available via
tisa.listin list custom scripts.Example