logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IModalPresenter

    Interface for a modal presenter handling UI modals.

    Namespace: Serenity.Modal.Application.Interfaces.Presenters
    Assembly: Serenity.Modal.Application.dll
    Syntax
    public interface IModalPresenter : IUiPresenter

    Methods

    Cancel(ModalCancelInput)

    Cancels the modal.

    Declaration
    void Cancel(ModalCancelInput input)
    Parameters
    Type Name Description
    ModalCancelInput input

    The input data for canceling the modal.

    ChangeOptionValue(ModalChangeOptionValueInput)

    Changes the value of an option in the modal.

    Declaration
    void ChangeOptionValue(ModalChangeOptionValueInput input)
    Parameters
    Type Name Description
    ModalChangeOptionValueInput input

    The input data for changing the option value.

    SelectOption(ModalSelectOptionInput)

    Selects an option in the modal.

    Declaration
    void SelectOption(ModalSelectOptionInput input)
    Parameters
    Type Name Description
    ModalSelectOptionInput input

    The input data for selecting the option.

    SubmitOption(ModalSubmitOptionInput)

    Submits the selected option from the modal.

    Declaration
    void SubmitOption(ModalSubmitOptionInput input)
    Parameters
    Type Name Description
    ModalSubmitOptionInput input

    The input data for submitting the option.

    In this article
    © 2026 Serenity. All Rights Reserved