UNPKG

1.25 kBPlain TextView Raw
1<template>
2 <div class="managed-client" >
3
4 <guac-client ref="client" :connectionID="connectionID" >
5 <div slot='header' class="rows">
6 <div class="btn btn-default" @click="setViewState('thumbnail')">Thumbnail</div>
7 <div class="btn btn-default" @click="setViewState('full')">Full</div>
8 <div class="btn btn-default" @click="setViewState('fullscreen')">Fullscreen</div>
9 </div>
10 <div slot='footer' class="rows">
11 <h4>Footer Stuff
12 <div class="small pull-right">Important stuff that belongs in the footer</div>
13 </h4>
14 </div>
15 </guac-client>
16
17
18 <!--<guac-footer @viewStateChange="setViewState"/>-->
19 </div>
20</template>
21
22<script>
23
24 import GuacClient from './GuacClient'
25
26
27 export default {
28 components: {GuacClient},
29 props: ['connectionID'],
30 name: 'GuacClientManager',
31 methods: {
32 setViewState(state) {
33 this.$refs.client.setViewState(state)
34 // this.viewState = state
35 // if (this.viewState == 'fullscreen'){
36 // this.$refs.client.fullscreen()
37 // }
38 }
39 }
40 }
41</script>
42
43<style scoped>
44 .managed-client {
45 padding: 0px;
46 /*margin: 10px;*/
47 }
48 /*.rows{*/
49 /*background-color: red;*/
50/*}*/
51</style>