Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaultShowSettings props doesn't work #17

Open
MatCar opened this issue Apr 22, 2020 · 2 comments
Open

defaultShowSettings props doesn't work #17

MatCar opened this issue Apr 22, 2020 · 2 comments

Comments

@MatCar
Copy link

MatCar commented Apr 22, 2020

No description provided.

@MatCar
Copy link
Author

MatCar commented Apr 22, 2020

the created function is present 2 times ...
created: function() {
// TODO: check if field keys are correctly set/without duplicates
this.showSettings = this.defaultShowSettings
},
watch:
...
created: function() {
this.updateFieldValues()
}

@smarano
Copy link

smarano commented Feb 17, 2021

My solution was to wrap a simple component and override mounted() method (both mounted() will be execute because were merged by Vue)

Just create a file MyPivot.vue with this content:
<script>
import Pivot from '@marketconnect/vue-pivot-table';
export default {
extends: Pivot,
mounted: function () {
this.showSettings = this.defaultShowSettings
}
}
</script>

then you can use the MyPivot component in your application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants