This repository has been archived on 2025-10-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rebuilding-uis/src/components/Application/ApplicationDisplaySwitcher.vue

24 lines
981 B
Vue
Raw Normal View History

2018-12-24 08:46:33 +00:00
<template>
<div>
2019-03-10 09:04:53 +00:00
<div class="bg-grey-1 rounded overflow-hidden">
<button type="button" class="p-2 focus:outline-none focus:bg-blue-3 focus:text-white" :class="[mode == 'grid' ? 'bg-blue-1 text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'grid')">
2018-12-24 12:44:34 +00:00
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__grid"></use></svg>
2018-12-25 20:43:37 +00:00
<span class="visuallyhidden">Grid</span>
2018-12-24 08:46:33 +00:00
</button>
2019-03-10 09:04:53 +00:00
<button type="button" class="p-2 focus:outline-none focus:bg-blue-3 focus:text-white" :class="[mode == 'list' ? 'bg-blue-1 text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'list')">
2018-12-24 08:46:33 +00:00
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__list"></use></svg>
2018-12-25 20:43:37 +00:00
<span class="visuallyhidden">List</span>
2018-12-24 08:46:33 +00:00
</button>
</div>
</div>
</template>
<script>
export default {
props: {
mode: String,
},
}
</script>