Added option to collapseand expand fieldsets

This commit is contained in:
liyasthomas
2019-08-21 20:28:37 +05:30
parent f85a15f85e
commit e077546f5d
3 changed files with 151 additions and 129 deletions

View File

@@ -65,6 +65,12 @@ const app = new Vue({
}
},
methods: {
collapse({
target
}) {
const el = target.parentNode.className
document.getElementsByClassName(el)[0].classList.toggle('hidden')
},
sendRequest() {
this.$refs.response.scrollIntoView({
behavior: 'smooth'