Flarum (2.x)
    Preparing search index...
    interface IRenameDiscussionModalAttrs {
        animateHide: (closedCallback?: () => void) => void;
        animateShow: (readyCallback?: () => void) => void;
        currentTitle: string;
        discussion: Discussion;
        state: ModalManagerState;
    }

    Hierarchy (View Summary)

    Index
    animateHide: (closedCallback?: () => void) => void

    Type Declaration

      • (closedCallback?: () => void): void
      • Animates the current modal out, then closes it.

        closedCallback runs when the hide animation ends, or after its CSS duration if no transition event arrives. If the modal is closed some other way before then, such as by a page change (Page closes any open modal) or by a non-stacked modal replacing it, its dialog is removed, the animation never ends and closedCallback does not run. It is not run in that case because whatever closed the modal may already have moved on: a callback that changes the route, for example, would close the new modal too.

        Parameters

        • closedCallback: () => void = ...

        Returns void

    animateShow: (readyCallback?: () => void) => void
    currentTitle: string
    discussion: Discussion