Class BackstageMenuItem
Inherited Members
Namespace: Syncfusion.Blazor.Ribbon
Assembly: Syncfusion.Blazor.dll
Syntax
public class BackstageMenuItem : SfBaseComponent
Constructors
BackstageMenuItem()
Declaration
public BackstageMenuItem()
Properties
ChildContent
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
IconCss
Gets or sets the CSS class for the icon displayed on the Backstage Menu item.
Declaration
public string IconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the CSS class to be applied to the menu item's icon. The default value is an empty string. |
Remarks
Use this property to specify a custom icon for the menu item by setting the CSS class that corresponds to the desired icon. This allows integration with icon libraries like Font Awesome, Material Icons, or custom icon sets.
ID
Gets or sets the unique identifier for the backstage menu item.
Declaration
public string ID { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String that represents the unique identifier for the backstage menu item. The default value is an empty string. |
Remarks
This identifier can be used to uniquely reference the menu item within the application, such as for dynamic manipulation of menu items. Ensure that each backstage menu item has a unique ID to avoid conflicts.
IsFooter
Gets or sets a value indicating whether the item is a footer item.
Declaration
public bool IsFooter { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean value indicating whether the Backstage Menu item is a footer item. The default value is |
Remarks
Set this property to true
to position the item in the footer of the Backstage Menu.
Separator
Gets or sets a value indicating whether the item is a separator.
Declaration
public bool Separator { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean value indicating whether the Backstage Menu item is a separator. The default value is |
Remarks
Set this property to true
to create a visual separator between menu items. This is useful for grouping related menu items.
Text
Gets or sets the text for the Backstage Menu item.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the text content to be displayed for the Backstage Menu item. The default value is an empty string. |
Remarks
Use this property to set a descriptive label or name for the Backstage Menu item. This text will be visible to users and should provide meaningful context about the item.
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |