Vue TileView - Overview
The TileView UI component contains a collection of tiles. Tiles can store much more information than ordinary buttons, that is why they are very popular in apps designed for touch devices.
The following code adds a primitive TileView to your page.
- <template>
- <DxTileView :data-source="dataSource"/>
- </template>
- <script>
- import 'devextreme/dist/css/dx.light.css';
- import { DxTileView } from 'devextreme-vue/tile-view';
- export default {
- components: {
- DxTileView
- },
- data() {
- return {
- dataSource: [
- { text: 'Alabama' },
- { text: 'Alaska' },
- { text: 'Arizona' },
- // ...
- ]
- };
- }
- }
- </script>
Note that field names in these data source items are conventional. This provides a default tile appearance, which can be customized later.
By default, the UI component is oriented horizontally, but you can orient it vertically using the direction property.
- <template>
- <DxTileView direction="vertical"/>
- </template>
- <script>
- import 'devextreme/dist/css/dx.light.css';
- import { DxTileView } from 'devextreme-vue/tile-view';
- export default {
- components: {
- DxTileView
- }
- }
- </script>
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.