Class PaginationAttribute
Tag a list field or property to add pagination.
Namespace: Unity.Properties.UI
Syntax
public class PaginationAttribute : InspectorAttribute
Constructors
PaginationAttribute(Int32[])
Constructs a new instance of PaginationAttribute with the specified pagination sizes.
Declaration
public PaginationAttribute(params int[] sizes)
Parameters
Type | Name | Description |
---|---|---|
Int32[] | sizes | The number of elements to be displayed when using pagination. |
Fields
AutoHide
Indicates if the pagination should be hidden when the list contains less elements than the minimal pagination size.
Declaration
public bool AutoHide
Field Value
Type | Description |
---|---|
Boolean |
Sizes
Returns the pagination sizes that should be displayed.
Declaration
public readonly int[] Sizes
Field Value
Type | Description |
---|---|
Int32[] |