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

Set search form values #67

Open
RealAtix opened this issue Jul 31, 2020 · 2 comments
Open

Set search form values #67

RealAtix opened this issue Jul 31, 2020 · 2 comments

Comments

@RealAtix
Copy link

Is it possible to set the values of the search form items?

I implemented a caching mechanism; if the user goes back to the table from another route, he will see the same search result.
My issue is that I haven't found any way to set the form values (of input, select, daterange) from cache by code.

I tried scanning this.$refs.myTable.$refs.searchForm for a way but couldn't find the right place and make it work.

@Tony-xubiao
Copy link

I met that situation either, Did you got any solutions for it?

@RealAtix
Copy link
Author

@Tony-xubiao
I haven't found a better way than doing something like this... It doesn't work for every input type.
this.$refs[this.tableRef].$refs.searchForm.$refs.form.$children[0].$children[1].$refs.reference.handleInput({ target: { value: searchParams.day }})

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