alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class RibbonGallerySettings

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    RibbonGallerySettings
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Ribbon
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class RibbonGallerySettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    RibbonGallerySettings()

    Declaration
    public RibbonGallerySettings()

    Properties

    Groups

    Gets or sets the properties for the collection of gallery items in the Ribbon.

    Declaration
    [Parameter]
    public List<GalleryGroup> Groups { get; set; }
    Property Value
    Type Description
    List<GalleryGroup>

    A list of GalleryGroup that represents the gallery groups. The default value is null.

    Remarks

    Use this property to configure multiple gallery groups, each containing a collection of items displayed in the Ribbon.

    ItemCount

    Gets or sets the number of items to be displayed in the Ribbon Gallery.

    Declaration
    [Parameter]
    public int ItemCount { get; set; }
    Property Value
    Type Description
    int

    An integer representing the number of items in the gallery. The default value is 3.

    Remarks

    This property controls how many items are visible in the Ribbon Gallery at a time. Increasing this number will display more items.

    ItemHover

    Gets or sets an event callback that is raised when a user hovers over a gallery item.

    Declaration
    [Parameter]
    public EventCallback<GalleryItemHoverEventArgs> ItemHover { get; set; }
    Property Value
    Type Description
    EventCallback<GalleryItemHoverEventArgs>

    An event callback function of type GalleryItemHoverEventArgs.

    Remarks

    Use this event to customize hover effects or display additional information.

    ItemRendering

    Gets or sets an event callback that is raised before rendering each gallery item.

    Declaration
    [Parameter]
    public EventCallback<GalleryItemRenderEventArgs> ItemRendering { get; set; }
    Property Value
    Type Description
    EventCallback<GalleryItemRenderEventArgs>

    An event callback function of type GalleryItemRenderEventArgs.

    Remarks

    This event provides a way to customize the rendering of individual gallery items.

    PopupClosing

    Gets or sets an event callback that is raised when the gallery popup closes.

    Declaration
    [Parameter]
    public EventCallback<GalleryPopupCloseEventArgs> PopupClosing { get; set; }
    Property Value
    Type Description
    EventCallback<GalleryPopupCloseEventArgs>

    An event callback function of type GalleryPopupCloseEventArgs.

    Remarks

    Use this event to handle logic before the gallery popup closes.

    PopupHeight

    Gets or sets the height of the Ribbon gallery popup.

    Declaration
    [Parameter]
    public string PopupHeight { get; set; }
    Property Value
    Type Description
    string

    A string specifying the height of the popup. The default value is "auto".

    Remarks

    The height can be specified in pixel values or other CSS-supported units. The default setting adjusts the height automatically based on the content.

    PopupOpening

    Gets or sets an event callback that is raised when the gallery popup opens.

    Declaration
    [Parameter]
    public EventCallback<GalleryPopupOpenEventArgs> PopupOpening { get; set; }
    Property Value
    Type Description
    EventCallback<GalleryPopupOpenEventArgs>

    An event callback function of type GalleryPopupOpenEventArgs.

    Remarks

    This event is triggered when the Ribbon Gallery popup opens.

    PopupTemplate

    Sets the template for the gallery items in the popup.

    Declaration
    [Parameter]
    public RenderFragment<GalleryItemContext> PopupTemplate { get; set; }
    Property Value
    Type Description
    RenderFragment<GalleryItemContext>

    A context of GalleryItemContext that specifies the template for the gallery items in the popup. The default value is null.

    Remarks

    Use this property to customize the content of items displayed in the Ribbon Gallery popup.

    PopupWidth

    Gets or sets the width of the Ribbon gallery popup.

    Declaration
    [Parameter]
    public string PopupWidth { get; set; }
    Property Value
    Type Description
    string

    A string specifying the width of the popup. The default value is "auto".

    Remarks

    The width can be specified in pixel values or other CSS-supported units. The default setting adjusts the width automatically based on the content.

    Selected

    Gets or sets an event callback that is raised when the gallery item is selected.

    Declaration
    [Parameter]
    public EventCallback<GallerySelectedEventArgs> Selected { get; set; }
    Property Value
    Type Description
    EventCallback<GallerySelectedEventArgs>

    An event callback function of type GallerySelectedEventArgs.

    Remarks

    Use this event to handle actions when an item is selected.

    SelectedItemIndex

    Gets or sets the index of the currently selected gallery item. Supports two-way binding.

    Declaration
    [Parameter]
    public int SelectedItemIndex { get; set; }
    Property Value
    Type Description
    int

    An integer representing the index of the selected item. The default value is 0.

    Remarks

    This property specifies which item is currently selected in the gallery. Indexing starts at 0, so the first item is at index 0. Define @bind-SelectedItemIndex to use two-way binding.

    SelectedItemIndexChanged

    Declaration
    [Parameter]
    public EventCallback<int> SelectedItemIndexChanged { get; set; }
    Property Value
    Type
    EventCallback<int>

    Selecting

    Gets or sets an event callback that is raised when selecting a gallery item.

    Declaration
    [Parameter]
    public EventCallback<GallerySelectEventArgs> Selecting { get; set; }
    Property Value
    Type Description
    EventCallback<GallerySelectEventArgs>

    An event callback function of type GallerySelectEventArgs.

    Remarks

    This event is triggered before a gallery item is selected, allowing you to cancel the action if needed.

    Template

    Sets the template for the gallery item contents.

    Declaration
    [Parameter]
    public RenderFragment<GalleryItemContext> Template { get; set; }
    Property Value
    Type Description
    RenderFragment<GalleryItemContext>

    A context of GalleryItemContext that specifies the template for the gallery items. The default value is null.

    Remarks

    This property allows you to define a custom template for the content of each gallery item.

    Methods

    Dispose(bool)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    Task
    Overrides
    ComponentBase.OnInitializedAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved