Class DropdownButton<T> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class DropdownButton<T>

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatefulWidget
    DropdownButton<T>
    Inherited Members
    StatefulWidget.createElement()
    Widget.key
    Widget.toStringShort()
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.material
    Syntax
    public class DropdownButton<T> : StatefulWidget where T : class
    Type Parameters
    Name Description
    T

    Constructors

    DropdownButton(Key, List<DropdownMenuItem<T>>, T, Widget, Widget, ValueChanged<T>, Int32, TextStyle, Single, Boolean, Boolean)

    Declaration
    public DropdownButton(Key key = null, List<DropdownMenuItem<T>> items = null, T value = null, Widget hint = null, Widget disabledHint = null, ValueChanged<T> onChanged = null, int elevation = 8, TextStyle style = null, float iconSize = 24F, bool isDense = false, bool isExpanded = false)
    Parameters
    Type Name Description
    Key key
    System.Collections.Generic.List<DropdownMenuItem<T>> items
    T value
    Widget hint
    Widget disabledHint
    ValueChanged<T> onChanged
    System.Int32 elevation
    TextStyle style
    System.Single iconSize
    System.Boolean isDense
    System.Boolean isExpanded

    Fields

    disabledHint

    Declaration
    public readonly Widget disabledHint
    Field Value
    Type Description
    Widget

    elevation

    Declaration
    public readonly int elevation
    Field Value
    Type Description
    System.Int32

    hint

    Declaration
    public readonly Widget hint
    Field Value
    Type Description
    Widget

    iconSize

    Declaration
    public readonly float iconSize
    Field Value
    Type Description
    System.Single

    isDense

    Declaration
    public readonly bool isDense
    Field Value
    Type Description
    System.Boolean

    isExpanded

    Declaration
    public readonly bool isExpanded
    Field Value
    Type Description
    System.Boolean

    items

    Declaration
    public readonly List<DropdownMenuItem<T>> items
    Field Value
    Type Description
    System.Collections.Generic.List<DropdownMenuItem<T>>

    onChanged

    Declaration
    public readonly ValueChanged<T> onChanged
    Field Value
    Type Description
    ValueChanged<T>

    style

    Declaration
    public readonly TextStyle style
    Field Value
    Type Description
    TextStyle

    value

    Declaration
    public readonly T value
    Field Value
    Type Description
    T

    Methods

    createState()

    Declaration
    public override State createState()
    Returns
    Type Description
    State
    Overrides
    StatefulWidget.createState()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023