Represents a DropDown component.

Implements
  • IComponent
  • IHandleEvent
  • IHandleAfterRender
  • JsonSerializable
  • IDisposable

constructor

public IgbDropdown()

Returns IgbDropdown

Inherited from: IgbComboBoxBaseLike

Whether the component dropdown should be kept open on selection. false

[Parameter]
public bool KeepOpenOnSelect { get; set; }

Inherited from: IgbComboBoxBaseLike

Whether the component dropdown should be kept open on clicking outside of it. false

[Parameter]
public bool KeepOpenOnOutsideClick { get; set; }

Inherited from: IgbBaseComboBox

Gets the components default event behavior.

protected override ControlEventBehavior DefaultEventBehavior { get; }

Inherited from: IgbBaseComboBox

Sets the open state of the component. false

[Parameter]
public bool Open { get; set; }

Inherited from: BaseRendererControl

[Inject]
protected IIgniteUIBlazor IgBlazor { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Height { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Width { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Class { get; set; }

Inherited from: BaseRendererControl

[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object> AdditionalAttributes { get; set; }

Inherited from: BaseRendererControl

Gets or sets how events are bubbled up from JavaScript to Blazor.

[Parameter]
public ControlEventBehavior EventBehavior { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public RenderFragment ChildContent { get; set; }

Inherited from: BaseRendererControl

Gets or sets what type of date conversion to make when round tripping dates.

[Parameter]
public RoundTripDateConversion RoundTripDateConversion { get; set; }

Inherited from: BaseRendererControl

protected virtual bool NeedsDynamicContent { get; }

Inherited from: BaseRendererControl

protected virtual bool UseCamelEnumValues { get; }
public IgbDropdownItemCollection ContentItems { get; }
protected override string DirectRenderElementName { get; }

The distance from the target element.

[Parameter]
public double Distance { get; set; }

Whether the component should be flipped to the opposite side of the target once it's about to overflow the visible area. When true, once enough space is detected on its preferred side, it will flip back.

[Parameter]
public bool Flip { get; set; }
protected override string ParentTypeName { get; }

The preferred placement of the component around the target element.

[Parameter]
public PopoverPlacement Placement { get; set; }

Whether the dropdown's width should be the same as the target's one.

[Parameter]
public bool SameWidth { get; set; }

Determines the behavior of the component during scrolling of the parent container.

[Parameter]
public PopoverScrollStrategy ScrollStrategy { get; set; }
protected override bool SupportsVisualChildren { get; }
public override string Type { get; }
protected override bool UseDirectRender { get; }

Inherited from: BaseRendererControl

protected Dictionary<Type, Dictionary<string, FieldInfo>> eventCallbacksCache

Inherited from: BaseRendererControl

protected string _cachedSerializedContent

Inherited from: IgbBaseComboBox

public Task SetNativeElementAsync(object element)

Parameters

  • element: object

Returns any

Inherited from: IgbBaseComboBox

public void SetNativeElement(object element)

Parameters

  • element: object

Returns any

Inherited from: IgbBaseComboBox

Shows the component.

public Task<bool> ShowAsync()

Returns any

Inherited from: IgbBaseComboBox

public bool Show()

Returns any

Inherited from: IgbBaseComboBox

Hides the component.

public Task<bool> HideAsync()

Returns any

Inherited from: IgbBaseComboBox

public bool Hide()

Returns any

Inherited from: IgbBaseComboBox

Toggles the open state of the component.

public Task<bool> ToggleAsync()

Returns any

Inherited from: IgbBaseComboBox

public bool Toggle()

Returns any

Inherited from: BaseRendererControl

Resolves the components event behavior if Auto is selected.

protected ControlEventBehavior ResolveEventBehavior()

Returns any

Inherited from: BaseRendererControl

protected string ToSpinal(string value)

Parameters

  • value: string

Returns any

Inherited from: BaseRendererControl

protected virtual string TransformSimpleKey(string key)

Parameters

  • key: string

Returns any

Inherited from: BaseRendererControl

protected virtual bool IsTransformedEnumValue(string key)

Parameters

  • key: string

Returns any

TransformPotentialEnumValue(string, object)

Section titled "TransformPotentialEnumValue(string, object)"

Inherited from: BaseRendererControl

protected virtual object TransformPotentialEnumValue(string key, object value)

Parameters

  • key: string
  • value: object

Returns any

Inherited from: BaseRendererControl

protected virtual SequenceInfo BuildSequenceInfo(int startSequence)

Parameters

  • startSequence: int

Returns any

Inherited from: BaseRendererControl

protected override void BuildRenderTree(RenderTreeBuilder builder)

Parameters

  • builder: RenderTreeBuilder

Returns any

Inherited from: BaseRendererControl

protected Type TemplateContentType(string templateId)

Parameters

  • templateId: string

Returns any

Inherited from: BaseRendererControl

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

  • firstRender: bool

Returns any

Inherited from: BaseRendererControl

public Task EnsureReady()

Returns any

Inherited from: BaseRendererControl

protected void MarkPropDirty(string propertyName)

Parameters

  • propertyName: string

Returns any

Inherited from: BaseRendererControl

protected bool IsPropDirty(string propertyName)

Parameters

  • propertyName: string

Returns any

Serialize(SerializationContext, string)

Section titled "Serialize(SerializationContext, string)"

Inherited from: BaseRendererControl

public void Serialize(SerializationContext context, string propertyName = null)

Parameters

  • context: SerializationContext
  • propertyName: string

Returns any

Inherited from: BaseRendererControl

public string Serialize()

Returns any

InvokeMethod(string, object[], string[], ElementReference[])

Section titled "InvokeMethod(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererControl

protected Task<object> InvokeMethod(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

InvokeMethodSync(string, object[], string[], ElementReference[])

Section titled "InvokeMethodSync(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererControl

protected object InvokeMethodSync(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

Inherited from: BaseRendererControl

Prevents data change notifications from be propagated to the component.

public void SuspendNotifications(object dataSource)

Parameters

  • dataSource: object

Returns any

Inherited from: BaseRendererControl

Resumes data change notifications.

public void ResumeNotifications(object dataSource, bool notify = true)

Parameters

  • dataSource: object
  • notify: bool

Returns any

NotifyInsertItem(object, int, object)

Section titled "NotifyInsertItem(object, int, object)"

Inherited from: BaseRendererControl

public void NotifyInsertItem(object dataSource, int index, object refItem)

Parameters

  • dataSource: object
  • index: int
  • refItem: object

Returns any

NotifyRemoveItem(object, int, object)

Section titled "NotifyRemoveItem(object, int, object)"

Inherited from: BaseRendererControl

public void NotifyRemoveItem(object dataSource, int index, object oldItem)

Parameters

  • dataSource: object
  • index: int
  • oldItem: object

Returns any

Inherited from: BaseRendererControl

public void NotifyClearItems(object dataSource)

Parameters

  • dataSource: object

Returns any

NotifySetItem(object, int, object, object)

Section titled "NotifySetItem(object, int, object, object)"

Inherited from: BaseRendererControl

public void NotifySetItem(object dataSource, int index, object oldItem, object newItem)

Parameters

  • dataSource: object
  • index: int
  • oldItem: object
  • newItem: object

Returns any

NotifyUpdateItem(object, int, object, bool)

Section titled "NotifyUpdateItem(object, int, object, bool)"

Inherited from: BaseRendererControl

public void NotifyUpdateItem(object dataSource, int index, object refItem, bool syncDataOnly = false)

Parameters

  • dataSource: object
  • index: int
  • refItem: object
  • syncDataOnly: bool

Returns any

Inherited from: BaseRendererControl

public void OnRefChanged(string refName, object refValue)

Parameters

  • refName: string
  • refValue: object

Returns any

Inherited from: BaseRendererControl

public void OnInvokeReturn(long invokeId, object returnValue)

Parameters

  • invokeId: long
  • returnValue: object

Returns any

Inherited from: BaseRendererControl

protected string Camelize(string value)

Parameters

  • value: string

Returns any

Inherited from: BaseRendererControl

protected string ToPascal(string value)

Parameters

  • value: string

Returns any

OnElementNameChanged(BaseRendererElement, string, string)

Section titled "OnElementNameChanged(BaseRendererElement, string, string)"

Inherited from: BaseRendererControl

protected void OnElementNameChanged(BaseRendererElement element, string oldName, string newName)

Parameters

  • element: BaseRendererElement
  • oldName: string
  • newName: string

Returns any

Inherited from: BaseRendererControl

protected virtual void Dispose(bool disposing)

Parameters

  • disposing: bool

Returns any

SetResourceStringAsync(string, string, string)

Section titled "SetResourceStringAsync(string, string, string)"

Inherited from: BaseRendererControl

public Task<object> SetResourceStringAsync(string grouping, string id, string value)

Parameters

  • grouping: string
  • id: string
  • value: string

Returns any

SetResourceStringAsync(string, string)

Section titled "SetResourceStringAsync(string, string)"

Inherited from: BaseRendererControl

public Task<object> SetResourceStringAsync(string grouping, string json)

Parameters

  • grouping: string
  • json: string

Returns any

SetPropertyValue(object, PropertyInfo, JsonElement)

Section titled "SetPropertyValue(object, PropertyInfo, JsonElement)"

Inherited from: BaseRendererControl

protected void SetPropertyValue(object item, PropertyInfo property, JsonElement jsonElement)

Parameters

  • item: object
  • property: PropertyInfo
  • jsonElement: JsonElement

Returns any

SetPropertyValue(object, PropertyInfo, object)

Section titled "SetPropertyValue(object, PropertyInfo, object)"

Inherited from: BaseRendererControl

protected void SetPropertyValue(object item, PropertyInfo property, object value)

Parameters

  • item: object
  • property: PropertyInfo
  • value: object

Returns any

Inherited from: BaseRendererControl

public void Dispose()

Returns any

public void ClearSelection()

Returns any

Clears the current selection of the dropdown.

public Task ClearSelectionAsync()

Returns any

public void DisconnectedCallback()

Returns any

public Task DisconnectedCallbackAsync()

Returns any

protected override void EnsureModulesLoaded()

Returns any

public override object FindByName(string name)

Parameters

  • name: string

Returns any

public IgbDropdownGroup[] GetGroups()

Returns any

public Task<IgbDropdownGroup[]> GetGroupsAsync()

Returns any

public IgbDropdownItem[] GetItems()

Returns any

public Task<IgbDropdownItem[]> GetItemsAsync()

Returns any

public IgbDropdownItem? GetSelectedItem()

Returns any

public Task<IgbDropdownItem?> GetSelectedItemAsync()

Returns any

public IgbDropdownItem NavigateTo(object index)

Parameters

  • index: object

Returns any

Navigates to the item at the specified index. If it exists, returns the found item, otherwise - null.

public Task<IgbDropdownItem> NavigateToAsync(object index)

Parameters

  • index: object

Returns any

protected override string ResolveDisplay()

Returns any

public IgbDropdownItem Select(object value)

Parameters

  • value: object

Returns any

Selects the item with the specified value. If it exists, returns the found item, otherwise - null.

public Task<IgbDropdownItem> SelectAsync(object value)

Parameters

  • value: object

Returns any

public void Show(object target_)

Parameters

  • target_: object

Returns any

Shows the dropdown.

public Task ShowAsync(object target_)

Parameters

  • target_: object

Returns any

public void Toggle(object target_)

Parameters

  • target_: object

Returns any

Toggles the open state of the dropdown.

public Task ToggleAsync(object target_)

Parameters

  • target_: object

Returns any

[Parameter]
public EventCallback<IgbDropdownItemComponentEventArgs> Change { get; set; }
[Parameter]
public EventCallback<IgbVoidEventArgs> Closed { get; set; }
[Parameter]
public EventCallback<IgbVoidEventArgs> Closing { get; set; }
[Parameter]
public EventCallback<IgbVoidEventArgs> Opened { get; set; }
[Parameter]
public EventCallback<IgbVoidEventArgs> Opening { get; set; }
[Parameter]
public string ChangeScript { get; set; }
[Parameter]
public string ClosedScript { get; set; }
[Parameter]
public string ClosingScript { get; set; }
[Parameter]
public string OpenedScript { get; set; }
[Parameter]
public string OpeningScript { get; set; }