Vue FileManager - toolbar.items
icon
This property accepts one of the following:
- The icon's URL
- The icon's name if the icon is from the DevExtreme icon library
- The icon's CSS class if the icon is from an external icon library (see External Icon Libraries)
- The icon in the Base64 format
- The icon in the SVG format. Ensure that the source is reliable.
locateInMenu
location
Whatever template you use for UI component items (default or a custom) will be located according to the value specified for the location field in the item data source object.
See Also
name
options
Angular
options should contain the properties of the DevExtreme UI component specified in the widget property. Because of this dependency, options cannot be typed and are not implemented as nested configuration components. Specify options with an object.
<dx-file-manager ... > <dxo-toolbar> <dxi-item widget="dxCheckBox" [options]="{ text: 'Show IDs' }"> </dxi-item> </dxo-toolbar> ... </dx-file-manager>
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { DxFileManagerModule } from 'devextreme-angular'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, DxFileManagerModule ], providers: [ ], bootstrap: [AppComponent] }) export class AppModule { }
Vue
options should contain the properties of the DevExtreme UI component specified in the widget property. Because of this dependency, options cannot be typed and are not implemented as nested configuration components. Specify options with an object. We recommend that you declare the object outside the configuration component to prevent possible issues caused by unnecessary re-rendering.
<template> <DxFileManager ... > <DxToolbar> <DxItem ... widget="dxCheckBox" :options="checkBoxOptions" /> </DxToolbar> </DxFileManager> </template> <script> import 'devextreme/dist/css/dx.light.css'; import DxFileManager, { DxToolbar } from 'devextreme-vue/file-manager'; export default { components: { DxFileManager, DxToolbar }, data() { return { checkBoxOptions: { text: 'Show IDs' } } } } </script>
React
options should contain the properties of the DevExtreme UI component specified in the widget property. Because of this dependency, options cannot be typed and are not implemented as nested configuration components. Specify options with an object. We recommend that you declare the object outside the configuration component to prevent possible issues caused by unnecessary re-rendering.
import React from 'react'; import 'devextreme/dist/css/dx.light.css'; import FileManager, { Toolbar } from 'devextreme-react/file-manager'; const App = () => { checkBoxOptions = { text: 'Show IDs' }; return ( <FileManager ... > <Toolbar> <Item widget="dxCheckBox" options={this.checkBoxOptions} /> </Toolbar> </FileManager> ); }; export default App;
Default toolbar items support the following options:
- accessKey
- elementAttr
- height
- hint
- icon
- stylingMode
- tabIndex
- text
- width
widget
A UI component that presents a toolbar item. To configure it, use the options object.
Import the specified UI component's module when using DevExtreme modules.
You can specify the widget option for custom toolbar items only.
If you have technical questions, please create a support ticket in the DevExpress Support Center.