Permalink
Browse files

Add info about static items (#222) (#223)

  • Loading branch information...
lukyanovas committed Dec 26, 2018
1 parent 4e0fd01 commit 199f8aba05e48f90f1d2224ef7e574a47753e4c2
Showing with 31 additions and 0 deletions.
  1. +31 −0 README.md
@@ -441,6 +441,37 @@ export default {
Note that configuration components are not provided for options that accept a type that depends on another option's value. For example,
the DataGrid's [editorOptions](https://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxDataGrid/Configuration/columns/#editorOptions), Form's [editorOptions](https://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxForm/Item_Types/SimpleItem/#editorOptions), Toolbar's [widget](https://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxToolbar/Default_Item_Template/#options) options.


If a configuration component has the `template` option, you can put the default-scoped content directly into this component. The following example demonstrates how to specify a template for a dx-item component:

```html
<dx-list>
<dx-item>
<span slot-scope="_">orange</span>
</dx-item>
<dx-item>
<span slot-scope="_">white</span>
</dx-item>
<dx-item>
<span slot-scope="_">black</span>
</dx-item>
</dx-list>
```

```js
import {
DxList,
DxItem
} from "devextreme-vue/list";
export default {
components: {
DxList,
DxItem
}
};
```

## <a name="license"></a>License ##

**DevExtreme Vue components are released as an MIT-licensed (free and open-source) DevExtreme add-on.**

0 comments on commit 199f8ab

Please sign in to comment.