Blame view

src/pages/notification.vue 1.97 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
          <v-checkbox
            v-model="props.selected"
            primary
            hide-details
4413a8d93   Jatinder Singh   changes
51
            @click.native="toggleAll"
93a68cfa1   Jatinder Singh   first commit
52
          ></v-checkbox>
4413a8d93   Jatinder Singh   changes
53
        </th>
07095d4d8   Jatinder Singh   regex
54
        <td>{{ props.item.Name }}</td>
93a68cfa1   Jatinder Singh   first commit
55
56
      </template>
      </v-data-table>
4413a8d93   Jatinder Singh   changes
57
        </v-card>
93a68cfa1   Jatinder Singh   first commit
58
59
60
61
62
63
64
65
66
67
      </v-container>
      </v-card>
   </v-app>
  </template>
  <script>
  export default {
    data () {
      return {
        search: '',
        selected: [],
5ac5570a9   Jatinder Singh   datatable changes
68
69
70
        pagination: {
          rowsPerPage: 10,
        },
93a68cfa1   Jatinder Singh   first commit
71
72
73
74
75
        headers: [
          {
            text: 'User List',
            align: 'left',
            sortable: false,
4413a8d93   Jatinder Singh   changes
76
        
93a68cfa1   Jatinder Singh   first commit
77
          },
93a68cfa1   Jatinder Singh   first commit
78
79
80
        ],
        desserts: [
          {
07095d4d8   Jatinder Singh   regex
81
            Name: 'ajay',
4413a8d93   Jatinder Singh   changes
82
83
84
85
86
          },
          {
            Name: 'amrit',
          },
          {
e2e46164f   Jatinder Singh   edit profile changes
87
            Name: 'Disant',
4413a8d93   Jatinder Singh   changes
88
89
          },
          {
e2e46164f   Jatinder Singh   edit profile changes
90
            Name: 'Pardeep',
5ac5570a9   Jatinder Singh   datatable changes
91
          }
93a68cfa1   Jatinder Singh   first commit
92
93
        ]
      };
4413a8d93   Jatinder Singh   changes
94
95
96
97
98
99
100
    },
    methods: {
      toggleAll () {
        if (this.selected.length) this.selected = [];
        else this.selected = this.desserts.slice();
      
      }
93a68cfa1   Jatinder Singh   first commit
101
102
    }
  };
8fc85e8ec   Jatinder Singh   data table changes
103
  </script>