API reference
Preparing search index…

ImGui.TableSetupColumn

  • Declare a table column and configure its layout.

    Parameters

    label
    string | Uint8Array

    Widget label; interactive widgets also use it for ID generation. A ## suffix can distinguish IDs without displaying the suffix.

    flags
    number = 0

    ImGuiTableColumnFlags options controlling this operation; combine compatible flag bits with |.

    Returns

    void
    • Use TableSetupColumn() to specify label, resizing policy, default width/weight, id, various other flags etc.

    • Use TableHeadersRow() to create a header row and automatically submit a TableHeader() for each column. Headers are required to perform: reordering, sorting, and opening the context menu. The context menu can also be made available in columns body using ImGuiTableFlags.ContextMenuInBody.

    • You may manually submit headers using TableNextRow() + TableHeader() calls, but this is only useful in some advanced use cases (e.g. adding custom widgets in header row).

    • Use TableSetupScrollFreeze() to lock columns/rows so they stay visible when scrolled.

    Implied init_width_or_weight = 0.0, user_id = 0

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0