TableColumnWidthAttribute

The TableColumnWidth attribute is used to further customize the width of a column in tables drawn using the TableListAttribute.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)32767, AllowMultiple = False)]
public class TableColumnWidthAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

See Also

Fields

Return Type Definition Description
bool Resizable Whether the column should be resizable. True by default.
int Width The width of the column.

Constructors

Definition Description
TableColumnWidthAttribute(int, bool) Initializes a new instance of the TableColumnWidthAttribute class.

Example

[TableList]
public List<SomeType> TableList = new List<SomeType>();

[Serializable]
public class SomeType
{
    [LabelWidth(30)]
    [TableColumnWidth(130, false)]
    [VerticalGroup("Combined")]
    public string A;

    [LabelWidth(30)]
    [VerticalGroup("Combined")]
    public string B;

    [Multiline(2), Space(3)]
    public string fields;
}