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

Readonly column not reactive #48

Closed
kentlee87 opened this issue Nov 8, 2020 · 1 comment
Closed

Readonly column not reactive #48

kentlee87 opened this issue Nov 8, 2020 · 1 comment

Comments

@kentlee87
Copy link

First of all, thanks for the awesome component.

I found out a problem when I changing the readonly props at runtime in vue-excel-column component, it won't take effect.

It only take the value that was initially set during render/mounted. There are no refresh method in the component to refresh the component. I have to do manual reload using v-if.

Hope the author can look into this small bug.

@cscan
Copy link
Owner

cscan commented Nov 8, 2020

You could set the readonly after mounted by the following codes:

this.$refs.grid.fields.map(f => {
    if (f.name === 'myfield') f.readonly = isReadonly
})

@cscan cscan closed this as completed Nov 9, 2020
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