Class FileManagerToolbarSettings
Defines the toolbar settings for the filemanager component.
Inheritance
FileManagerToolbarSettings
Assembly: Syncfusion.Blazor.dll
public class FileManagerToolbarSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
Declaration
public FileManagerToolbarSettings()
Properties
ChildContent
Gets or sets the child content for the component.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Gets or sets the items to be rendered in the File Manager toolbar.
Declaration
[Parameter]
public List<ToolBarItemModel> ToolbarItems { get; set; }
Property Value
<SfFileManager TValue="FileManagerDirectoryContent">
<FileManagerAjaxSettings Url = "https://ej2-aspcore-service.azurewebsites.net/api/FileManager/FileOperations"
UploadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Upload"
DownloadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Download"
GetImageUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/GetImage">
</FileManagerAjaxSettings>
<FileManagerToolbarSettings ToolbarItems="@Items"> </FileManagerToolbarSettings>
</SfFileManager>
@code {
private List<ToolBarItemModel> Items = new List<ToolBarItemModel>()
{
new ToolBarItemModel() { Name="NewFolder"},
new ToolBarItemModel() { Name = "Upload"},
new ToolBarItemModel() { Name = "Cut"},
new ToolBarItemModel() { Name = "Copy"},
new ToolBarItemModel() { Name = "Paste"},
new ToolBarItemModel() { Name = "Delete"},
new ToolBarItemModel() { Name = "Download"},
new ToolBarItemModel() { Name = "Reaname"},
new ToolBarItemModel() { Name = "SortBy"},
new ToolBarItemModel() { Name = "Refresh"},
new ToolBarItemModel() { Name = "Selection"},
new ToolBarItemModel() { Name = "View"},
new ToolBarItemModel() { Name = "Details"},
new ToolBarItemModel() { Name = "CustomCheck", Text = "Check", TooltipText ="Check", PrefixIcon="e-icons e-check-box" },
new ToolBarItemModel() { Name = "CustomUncheck", Text = "Uncheck", TooltipText ="Uncheck", PrefixIcon="e-icons e-check-box" },
};
}
Enables or disables the visibility of toolbar in the file manager component.
Declaration
[Parameter]
public bool Visible { get; set; }
Property Value
Methods
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Overrides
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
|
Overrides
Declaration
protected override Task OnInitializedAsync()
Returns
Overrides
Declaration
protected override Task OnParametersSetAsync()
Returns
Overrides
Implements