Search Results for

    Show / Hide Table of Contents

    Interface IInteractiveTui<TPrimary, TSecondary>

    An interface for your interactive user interface for terminal apps

    Namespace: Terminaux.Inputs.Interactive
    Assembly: Terminaux.dll
    Syntax
    public interface IInteractiveTui<TPrimary, TSecondary>
    Type Parameters
    Name Description
    TPrimary
    TSecondary

    Properties

    | Edit this page View Source

    AcceptsEmptyData

    Whether empty data is accepted

    Declaration
    bool AcceptsEmptyData { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    PrimaryDataSource

    An array, a dictionary, a list, or an enumerable that holds data (pane one)

    Declaration
    IEnumerable<TPrimary> PrimaryDataSource { get; }
    Property Value
    Type Description
    IEnumerable<TPrimary>
    | Edit this page View Source

    RefreshInterval

    How many milliseconds to wait before refreshing? Only applies to single-pane interactive TUI instances. 0 to disable.

    Declaration
    int RefreshInterval { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    SecondPaneInteractable

    Whether the user can switch to the second path

    Declaration
    bool SecondPaneInteractable { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    SecondaryDataSource

    An array, a dictionary, a list, or an enumerable that holds data (pane two)

    Declaration
    IEnumerable<TSecondary> SecondaryDataSource { get; }
    Property Value
    Type Description
    IEnumerable<TSecondary>

    Methods

    | Edit this page View Source

    GetEntryFromItem(TPrimary)

    Gets an entry string from a specified item for listing

    Declaration
    string GetEntryFromItem(TPrimary item)
    Parameters
    Type Name Description
    TPrimary item

    Target item

    Returns
    Type Description
    string
    | Edit this page View Source

    GetEntryFromItemSecondary(TSecondary)

    Gets an entry string from a specified item for listing

    Declaration
    string GetEntryFromItemSecondary(TSecondary item)
    Parameters
    Type Name Description
    TSecondary item

    Target item

    Returns
    Type Description
    string
    | Edit this page View Source

    GetInfoFromItem(TPrimary)

    Gets the info from the item

    Declaration
    string GetInfoFromItem(TPrimary item)
    Parameters
    Type Name Description
    TPrimary item

    Target item

    Returns
    Type Description
    string

    The rendered info so that InteractiveTuiTools can handle its rendering

    | Edit this page View Source

    GetInfoFromItemSecondary(TSecondary)

    Gets the info from the item

    Declaration
    string GetInfoFromItemSecondary(TSecondary item)
    Parameters
    Type Name Description
    TSecondary item

    Target item

    Returns
    Type Description
    string

    The rendered info so that InteractiveTuiTools can handle its rendering

    | Edit this page View Source

    GetStatusFromItem(TPrimary)

    Gets the status from the item

    Declaration
    string GetStatusFromItem(TPrimary item)
    Parameters
    Type Name Description
    TPrimary item

    Target item

    Returns
    Type Description
    string
    | Edit this page View Source

    GetStatusFromItemSecondary(TSecondary)

    Gets the status from the item

    Declaration
    string GetStatusFromItemSecondary(TSecondary item)
    Parameters
    Type Name Description
    TSecondary item

    Target item

    Returns
    Type Description
    string
    | Edit this page View Source

    HandleExit()

    Handles exiting the interactive TUI

    Declaration
    void HandleExit()
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX