blazor-devexpress-dot-blazor-dot-dxribbonapplicationtabitem-aa4168cf.md
Specifies the caption for the application tab’s item.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(null)]
[Parameter]
public string Text { get; set; }
| Type | Default | Description |
|---|---|---|
| String | null |
The item text.
|
Use the Text property to specify a caption for the application tab’s item.
<DxRibbon>
<DxRibbonApplicationTab Text="File">
<DxRibbonApplicationTabItem Text="New"
IconCssClass="rb-icon rb-icon-document-blank"
Click="@(() => ClickItem("New tab item"))" />
<DxRibbonApplicationTabItem Text="Open"
IconCssClass="rb-icon rb-icon-folder-open"
Click="@(() => ClickItem("Open tab item"))" />
<DxRibbonApplicationTabItem Text="Save as"
IconCssClass="rb-icon rb-icon-save"
Click="@(() => ClickItem("Save as tab item"))">
<DxRibbonApplicationTabItem Text="Text file"
Click="@(() => ClickItem("Text file tab item"))"/>
<DxRibbonApplicationTabItem Text="Word document"
Click="@(() => ClickItem("Word document tab item"))"/>
<DxRibbonApplicationTabItem Text="Pdf file"
Click="@(() => ClickItem("Pdf file tab item"))"/>
</DxRibbonApplicationTabItem>
<DxRibbonApplicationTabItem Text="Share"
IconCssClass="rb-icon rb-icon-share"
Click="@(() => ClickItem("Share tab item"))" />
<DxRibbonApplicationTabItem Text="Print"
IconCssClass="rb-icon rb-icon-print"
Click="@(() => ClickItem("Print tab item"))" />
</DxRibbonApplicationTab>
<DxRibbonTab Text="Home">...</DxRibbonTab>
<DxRibbonTab Text="Insert">...</DxRibbonTab>
</DxRibbon>
.rb-icon {
width: 1.25rem;
height: 1.25rem;
background-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
background-position: center center;
background-color: currentColor;
}
.rb-icon-document-blank {
-webkit-mask-image: url("../images/icons/ribbon/berry/document-blank.svg");
mask-image: url("../images/icons/ribbon/berry/document-blank.svg");
}
.rb-icon-folder-open {
-webkit-mask-image: url("../images/icons/ribbon/berry/folder-open.svg");
mask-image: url("../images/icons/ribbon/berry/folder-open.svg");
}
.rb-icon-save {
-webkit-mask-image: url("../images/icons/ribbon/berry/save.svg");
mask-image: url("../images/icons/ribbon/berry/save.svg");
}
.rb-icon-print {
-webkit-mask-image: url("../images/icons/ribbon/berry/print.svg");
mask-image: url("../images/icons/ribbon/berry/print.svg");
}
.rb-icon-share {
-webkit-mask-image: url("../images/icons/ribbon/berry/share.svg");
mask-image: url("../images/icons/ribbon/berry/share.svg");
}
See Also
DxRibbonApplicationTabItem Class