Search...
reorderCategoryEvents( )
Change the order of events that are assigned to the same category on the Events Widget.
Description
For more information see this aricle
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function reorderCategoryEvents(categoryId: string, options: ReorderCategoryEventsOptions): Promise<void>
reorderCategoryEvents Parameters
NAME
TYPE
DESCRIPTION
categoryId
string
Category ID
options
Optional
ReorderCategoryEventsOptions
Optional fields.
Returns
Return Type:
Promise<
void
>Was this helpful?
reorderCategoryEvents example
Copy Code
1import { categories } from 'wix-events.v2';23 async function reorderCategoryEvents(categoryId, options) {4 try {5 const result = await categories.reorderCategoryEvents(categoryId, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13