View Categories

Active Layout Style

Description

This property enables you to select one out of three layout options available for the date picker.

Type

LayoutOptions (enum)

Enum Options

  • Vertical
  • Horizontal
  • Compact

Syntax

AMADatePicker.ADP.EnableScrolling = AMADatePicker.Tools.LayoutOptions; 

Example

using UnityEngine;
using AMADatePicker;

public class DateViewer : MonoBehavior

// Get reference to an ADP instance through the inspector
[SerializeField] private ADP _ADPInstance;

private void Start()
{
    _ADPInstance.ActiveLayoutStyle = LayoutOptions.Vertical;
} 

Leave a Reply

Your email address will not be published. Required fields are marked *