Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. menu_items: [
  2. {
  3. icon: "keyboard_arrow_up",
  4. "icon-alt": "keyboard_arrow_down",
  5. text: "Trainees",
  6. type: "link",
  7. model: false,
  8. children: [
  9. {
  10. icon: "contacts",
  11. text: "Application",
  12. type: "link",
  13. ref: "/trainee/application/"
  14. },
  15. {
  16. icon: "contacts",
  17. text: "Business Manager",
  18. type: "link",
  19. ref: "/trainee/businessManager/"
  20. },
  21.  
  22. <template v-slot:activator>
  23. <v-list-tile>
  24. <v-list-tile-content>
  25. <v-list-tile-title>{{ item.text }}</v-list-tile-title>
  26. </v-list-tile-content>
  27. </v-list-tile>
  28. </template>
  29. <v-list-tile
  30. v-for="(child, i) in item.children"
  31. :key="i"
  32. @click.stop="child.type === 'link' ? goPage(child.ref) : child.func.apply(this)"
  33. >
  34. <v-list-tile-action v-if="child.icon">
  35. <v-icon>{{ child.icon }}</v-icon>
  36. </v-list-tile-action>
  37. <v-list-tile-content>
  38. <v-list-tile-title>{{child.text }}</v-list-tile-title>
  39. </v-list-tile-content>
  40. </v-list-tile>
  41. </v-list-group>
  42. <v-list-tile v-else :key="item.text">
  43. <v-list-tile-action>
  44. <v-icon>{{ item.icon }}</v-icon>
  45. </v-list-tile-action>
  46. <v-list-tile-content>
  47. <v-list-tile-title>{{ item.text }}</v-list-tile-title>
  48. </v-list-tile-content>
  49. </v-list-tile>
  50. </template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement