Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from add2cal/dev
Browse files Browse the repository at this point in the history
changing name style
  • Loading branch information
jekuer authored Oct 25, 2022
2 parents fa8e71b + 1151f6a commit f006666
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,19 @@ import AddToCalendarButton from 'add-to-calendar-button-vue';

Use the componet inside your code and declare any options as attributes.
```
<AddToCalendarButton
<add-to-calendar-button
name="Test-Event"
startDate="2023-05-22"
:options="['Apple','Google','Yahoo','iCal']"
></AddToCalendarButton>
></add-to-calendar-button>
```

Mind that for images, options, and customLabels, you would need to add ":" before the props name (v-bind). Otherwise, Vue would not recognize them as Arrays and Objects, but Strings (see [Vue Documentation](https://vuejs.org/guide/components/props.html#props-declaration) for details).

<!--If you want to not pass the props via the component element, you can also simply fall back to the JSON style of main Add to Calendar Button script. Keep on including the Vue component, but instead of using `<AddToCalendarButton></AddToCalendarButton>`, you use the following syntax:
<!--If you want to not pass the props via the component element, you can also simply fall back to the JSON style of main Add to Calendar Button script. Keep on including the Vue component, but instead of using `<add-to-calendar-button></add-to-calendar-button>`, you use the following syntax:
```
<AddToCalendarButton>
<add-to-calendar-button>
{
"name":"Add the title of your event",
"startDate":"2023-05-22",
Expand All @@ -128,7 +128,7 @@ Mind that for images, options, and customLabels, you would need to add ":" befor
"iCal"
]
}
</AddToCalendarButton>
</add-to-calendar-button>
```-->

<br /><br />
Expand All @@ -145,6 +145,7 @@ Find all information about the available parameters and how to configure specifi

## ⚡ Changelog

- v1.1 : changing component name
- v1.0 : initial release

Mind that this is only referring to this wrapper repository and does not list any patches!
Expand Down
2 changes: 1 addition & 1 deletion dist/atcb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/atcb.umd.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "add-to-calendar-button-vue",
"version": "1.0.0",
"version": "1.1.0",
"engines": {
"node": ">=14.20.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/AddToCalendarButtonComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script lang="ts">
let initializedButtons: string[] = [];
export default {
name: "AddToCalendarButton",
name: "add-to-calendar-button",
props: {
proKey: String,
name: String,
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/components/AddToCalendarButtonComponent.vue'),
name: 'AddToCalendarButton',
name: 'add-to-calendar-button',
fileName: 'atcb'
},
rollupOptions: {
Expand Down

0 comments on commit f006666

Please sign in to comment.