Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/forum/utils

Index

Properties

default

default: { controls: any; deleteAction: any; destructiveControls: any; hideAction: any; moderationControls: any; renameAction: any; replyAction: any; restoreAction: any; userControls: any }

Type declaration

default

default: { controls: any; deleteAction: any; destructiveControls: any; editAction: any; hideAction: any; moderationControls: any; restoreAction: any; userControls: any }

Type declaration

default

default: { controls: any; deleteAction: any; destructiveControls: any; editAction: any; moderationControls: any; showDeletionAlert: any; userControls: any }

Type declaration

Functions

alertEmailConfirmation

isSafariMobile

  • isSafariMobile(): boolean

slidable

  • The slidable utility adds touch gestures to an element so that it can be slid away to reveal controls underneath, and then released to activate those controls.

    It relies on the element having children with particular CSS classes.

    The function returns a record with a reset proeprty. This is a function which reverts the slider to its original position. This should be called, for example, when a controls dropdown is closed.

    Parameters

    Returns { reset: any }

Type literals

__type

__type

controls

deleteAction

  • deleteAction(context: any): Promise<void>

Protected destructiveControls

editAction

hideAction

Protected moderationControls

restoreAction

Protected userControls

__type

__type

controls

deleteAction

  • deleteAction(user: User): void

Protected destructiveControls

editAction

  • editAction(user: User): void

Protected moderationControls

showDeletionAlert

  • showDeletionAlert(user: User, type: string): void

Protected userControls

Generated using TypeDoc version 0.22.10