logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class OnShowModalInput

    Input data transfer object for showing a modal.

    Inheritance
    object
    OnShowModalInput
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Modal.Application.DTO
    Assembly: Serenity.Modal.Application.dll
    Syntax
    public class OnShowModalInput

    Constructors

    OnShowModalInput(string, string, string, List<SerializedComponentData>, bool, bool)

    Initializes a new instance of the OnShowModalInput class.

    Declaration
    public OnShowModalInput(string id, string title, string text, List<SerializedComponentData> buttonsData, bool isTranslatingTitle = false, bool isTranslatingText = false)
    Parameters
    Type Name Description
    string id

    The unique identifier for the modal.

    string title

    The title of the modal.

    string text

    The text content of the modal.

    List<SerializedComponentData> buttonsData

    The list of button data for the modal.

    bool isTranslatingTitle

    Whether the title is a localization key.

    bool isTranslatingText

    Whether the text is a localization key.

    Fields

    ButtonsData

    Declaration
    public List<SerializedComponentData> ButtonsData
    Field Value
    Type Description
    List<SerializedComponentData>

    The list of button data for the modal.

    Id

    Declaration
    public string Id
    Field Value
    Type Description
    string

    The unique identifier for the modal.

    IsTranslatingText

    Declaration
    public bool IsTranslatingText
    Field Value
    Type Description
    bool

    Whether the text should be treated as a localization key.

    IsTranslatingTitle

    Declaration
    public bool IsTranslatingTitle
    Field Value
    Type Description
    bool

    Whether the title should be treated as a localization key.

    Text

    Declaration
    public string Text
    Field Value
    Type Description
    string

    The text content of the modal.

    Title

    Declaration
    public string Title
    Field Value
    Type Description
    string

    The title of the modal.

    Methods

    ToString()

    Returns a string representation of the OnShowModalInput instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of the instance.

    Overrides
    object.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved