<template>
    
    <v-sheet
        :height="height"
        class="overflow-x-hidden overflow-y-auto"
        id="country-scroll-target"
    >
        <city-record 
            v-for="(city, index) in items"
            :key="'city-' + index"
            :app="app"
            :city="city"
            class="mb-1 mr-1"
        />
    </v-sheet>
</template>

<script>
    export default {
        props: {
            app: {required: true},
            dataprovider: {required: true},
            height: {default: null},
        },

        computed: {
            items() {
                return this.dataprovider.items;
            }
        },

        components: {
            CityRecord: require('./Record/CityRecord').default,
        },

        name: 'CityItems',
    }
</script>