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
McityToolbarcomponent withimport McityToolbar from '@mcity/mcity-vue-shared/components/McityToolbar' - Include the toolbar component in the template for
app.vuewith<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
5 years ago
2.0.6
5 years ago
2.0.5
5 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
6 years ago
1.3.24
7 years ago
1.3.23
7 years ago
1.3.22
7 years ago
1.3.21
7 years ago
1.3.20
7 years ago
1.3.19
7 years ago
1.3.18
7 years ago
1.3.17
7 years ago
1.3.16
7 years ago
1.3.15
7 years ago
1.3.14
7 years ago
1.3.13
7 years ago
1.3.12
7 years ago
1.3.11
7 years ago
1.3.10
7 years ago
1.3.9
7 years ago
1.3.8
7 years ago
1.3.7
7 years ago
1.3.6
7 years ago
1.3.5
7 years ago
1.3.4
7 years ago
1.3.3
7 years ago
1.3.2
7 years ago
1.3.0
7 years ago