2.0.8 • Published 4 years ago
@mcity/mcity-vue-shared v2.0.8
Mcity-vue-shared
Common vue files/themed components used across projects
Usage
Toolbar
- Import the
McityToolbar
component withimport McityToolbar from '@mcity/mcity-vue-shared/components/McityToolbar'
- Include the toolbar component in the template for
app.vue
with<mcity-toolbar><mcity-toolbar/>
- Pass the following required props
- fullname
- username
- presentation-text
- isUserAdmin
- title
- There is a named slot available titled "buttons" when any app-specific toolbar buttons can be placed (see example below).
- There is another slot, "overflow-buttons" which maps to inside the ellipses menu on the far right of the toolbar.
Example:
<mcity-toolbar
:fullname="fullname"
:username="username"
:presentation-text="presentationText"
:isUserAdmin="isUserAdmin"
title="Project Tracking"
>
<template v-slot:buttons>
<v-btn
v-if="isUserAdmin"
flat
:to="{name: 'New'}"
data-cy="new-project-btn">
New Project
</v-btn>
</template>
</mcity-toolbar>
2.0.8
4 years ago
2.0.7
4 years ago
2.0.6
4 years ago
2.0.5
4 years ago
2.0.3
5 years ago
2.0.4
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.3.24
6 years ago
1.3.23
6 years ago
1.3.22
6 years ago
1.3.21
6 years ago
1.3.20
6 years ago
1.3.19
6 years ago
1.3.18
6 years ago
1.3.17
6 years ago
1.3.16
6 years ago
1.3.15
6 years ago
1.3.14
6 years ago
1.3.13
6 years ago
1.3.12
6 years ago
1.3.11
6 years ago
1.3.10
6 years ago
1.3.9
6 years ago
1.3.8
6 years ago
1.3.7
6 years ago
1.3.6
6 years ago
1.3.5
6 years ago
1.3.4
6 years ago
1.3.3
6 years ago
1.3.2
6 years ago
1.3.0
6 years ago