vue-chat-scroll | ️ Vue directive to keep things scrolled to the bottom | Chat library
kandi X-RAY | vue-chat-scroll Summary
kandi X-RAY | vue-chat-scroll Summary
️ Vue directive to keep things scrolled to the bottom.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-chat-scroll
vue-chat-scroll Key Features
vue-chat-scroll Examples and Code Snippets
import Vue from 'vue'
import VueChatScroll from 'vue-chat-scroll'
Vue.use(VueChatScroll)
plugins: [...your existing plugins,'~/plugins/vue-chat-scroll.js']
Community Discussions
Trending Discussions on vue-chat-scroll
QUESTION
I'm trying to create a NuxtJS component using Vuetify that has 1) a "window" for displaying messages, and 2) a text field for sending a new message. The messages window uses the vue-chat-scroll plugin, which is meant to make the component scrollable when it overflows with messages. These two components are both located within a parent container panel.
I'd like for the message entry field to align to the bottom of the parent container panel. The rest of the parent container should be filled by the messages window. I tried doing this by hardcoding both the messages window and entry field to use screen's vertical height. And the result was not capable of adapting to different screen sizes. Using % didn't change their heights at all.
Here is the current state of this component:
And the code...
PARENT CONTAINER
...ANSWER
Answered 2021-Oct-15 at 21:04You should use CSS flexbox
.
You can should the flex-direction
to column
to stack the children,
set the justify-content
to flex-end
to align the children to the bottom
and flex-grow
to 1
on the messages window, so it takes up all extra available height
QUESTION
There's a plugin called vue-chat-scroll and I would like to use it in nuxt. Am a beginner so I cant really understand how but I wonder if its possible to use this vue plugin in nuxt as plugin. how would one do that?
...ANSWER
Answered 2020-Mar-18 at 15:56Create a file inside plugins folder, for example, vue-chat-scroll.js with the following content:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-chat-scroll
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page