CommunityRoleEvents
CommunityRoleEvents =
object
Event map type for CommunityRoleClient. This type defines the event signatures for role-related events.
For event name constants, see CommunityRoleEvent.
Properties
communityRole.created()
communityRole.created: (
evt:CommunityRoleCreatedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | CommunityRoleCreatedEvent |
Returns
void
Example
import { rootServer, CommunityRoleEvent, CommunityRoleCreatedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleCreated, (evt: CommunityRoleCreatedEvent) => {
// ...
});
communityRole.deleted()
communityRole.deleted: (
evt:CommunityRoleDeletedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | CommunityRoleDeletedEvent |
Returns
void
Example
import { rootServer, CommunityRoleEvent, CommunityRoleDeletedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleDeleted, (evt: CommunityRoleDeletedEvent) => {
// ...
});
communityRole.edited()
communityRole.edited: (
evt:CommunityRoleEditedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | CommunityRoleEditedEvent |
Returns
void
Example
import { rootServer, CommunityRoleEvent, CommunityRoleEditedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleEdited, (evt: CommunityRoleEditedEvent) => {
// ...
});
communityRole.moved()
communityRole.moved: (
evt:CommunityRoleMovedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | CommunityRoleMovedEvent |
Returns
void
Example
import { rootServer, CommunityRoleEvent, CommunityRoleMovedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleMoved, (evt: CommunityRoleMovedEvent) => {
// ...
});