Blame view

src/pages/notification.vue 1.81 KB
93a68cfa1   Jatinder Singh   first commit
1
2
  <template>
   <v-app id="login">
a259e694f   Jatinder Singh   minor change
3

04e3fbc56   Jatinder Singh   minor fix
4
      <v-toolbar color="white">
93a68cfa1   Jatinder Singh   first commit
5
6
        <h4 class="text-lg-left"><b>Push Notification</b></h4>
        <v-spacer></v-spacer>
250d1e021   Jatinder Singh   datatable change
7
8
        <v-flex xs6 sm4>
        <v-text-field justify-right
93a68cfa1   Jatinder Singh   first commit
9
10
11
12
13
          prepend-icon="search"
          v-model="search"
          label="Find your users"
          single-line
          hide-details
4413a8d93   Jatinder Singh   changes
14
          color="black"
5ac5570a9   Jatinder Singh   datatable changes
15
        > 
93a68cfa1   Jatinder Singh   first commit
16
      </v-text-field>
4413a8d93   Jatinder Singh   changes
17
18
      </v-flex>
      </v-toolbar>
93a68cfa1   Jatinder Singh   first commit
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
      <v-card>
      <v-card-text>
      <v-flex xs12>
      <v-textarea
          solo
          name="input-7-4"
          label="Hello Users!">
      </v-textarea>
      </v-flex>
      </v-card-text>
      <v-flex text-xs-right>
      <div>
      <v-btn dark large class="text-lg-right" >send</v-btn>
      </div></v-flex>
      <v-container grid-list-xl>
4413a8d93   Jatinder Singh   changes
34
      <v-card>
93a68cfa1   Jatinder Singh   first commit
35
36
37
38
39
40
41
      <v-data-table
        :headers="headers"
        :items="desserts"
        :search="search"
        v-model="selected"
        item-key="name"
        select-all
269061695   Jatinder Singh   changes
42
        class="text-xs-left"
5ac5570a9   Jatinder Singh   datatable changes
43
        :pagination.sync="pagination"
93a68cfa1   Jatinder Singh   first commit
44
      >
93a68cfa1   Jatinder Singh   first commit
45
      <template slot="items" slot-scope="props">
4413a8d93   Jatinder Singh   changes
46
        <th>
93a68cfa1   Jatinder Singh   first commit
47
48
49
50
51
          <v-checkbox
            v-model="props.selected"
            primary
            hide-details
          ></v-checkbox>
4413a8d93   Jatinder Singh   changes
52
        </th>
c1fd43e24   Jatinder Singh   changes
53
        <td>{{ props.item.name }}</td>
93a68cfa1   Jatinder Singh   first commit
54
55
      </template>
      </v-data-table>
4413a8d93   Jatinder Singh   changes
56
        </v-card>
93a68cfa1   Jatinder Singh   first commit
57
58
59
60
61
62
63
64
65
66
      </v-container>
      </v-card>
   </v-app>
  </template>
  <script>
  export default {
    data () {
      return {
        search: '',
        selected: [],
5ac5570a9   Jatinder Singh   datatable changes
67
68
69
        pagination: {
          rowsPerPage: 10,
        },
93a68cfa1   Jatinder Singh   first commit
70
71
72
73
74
        headers: [
          {
            text: 'User List',
            align: 'left',
            sortable: false,
4413a8d93   Jatinder Singh   changes
75
        
93a68cfa1   Jatinder Singh   first commit
76
          },
93a68cfa1   Jatinder Singh   first commit
77
78
79
        ],
        desserts: [
          {
c1fd43e24   Jatinder Singh   changes
80
            name: 'ajay',
4413a8d93   Jatinder Singh   changes
81
82
          },
          {
c1fd43e24   Jatinder Singh   changes
83
            name: 'amrit',
4413a8d93   Jatinder Singh   changes
84
85
          },
          {
c1fd43e24   Jatinder Singh   changes
86
            name: 'Disant',
4413a8d93   Jatinder Singh   changes
87
88
          },
          {
c1fd43e24   Jatinder Singh   changes
89
            name: 'Pardeep',
5ac5570a9   Jatinder Singh   datatable changes
90
          }
93a68cfa1   Jatinder Singh   first commit
91
92
        ]
      };
4413a8d93   Jatinder Singh   changes
93
94
    },
    methods: {
4413a8d93   Jatinder Singh   changes
95
      
93a68cfa1   Jatinder Singh   first commit
96
97
    }
  };
8fc85e8ec   Jatinder Singh   data table changes
98
  </script>