Comments (2)
Has been proposed here #71 , guess it's not a thing yet
from chat-widget-adapters.
Seems like the it updates the visibility of the widget when the prop is changed here
Maybe changing the visibility prop of the LiveChatWidget will help, something like;
import { FunctionComponent, useState } from 'react';
import { LiveChatWidget, WidgetState, useWidgetIsReady } from '@livechat/widget-react';
const LiveChatWidgetSection: FunctionComponent = () => {
const isWidgetReady = useWidgetIsReady();
const [liveChatWidgetVisibility, setLiveChatWidgetVisibility] = useState<WidgetState['visibility']>('hidden');
if (!isWidgetReady) {
return null;
}
return (
<>
<button onClick={() => setLiveChatWidgetVisibility('maximized')}>
Change LiveChat Widget Visibility
</button>
<LiveChatWidget
license='your_license_here'
visibility={liveChatWidgetVisibility}
/>
</>
);
};
export default LiveChatWidgetSection;
from chat-widget-adapters.
Related Issues (20)
- Color Change on react js HOT 1
- Question: How to use with Custom Identity Provider? HOT 2
- Set LiveChat Customer Avatar HOT 1
- Angular v15 update HOT 4
- Angular v15 update HOT 2
- Add SvelteKit Support HOT 1
- Intermittent white bar on bottom on mobile devices HOT 1
- Angular Adaptor Event Handlers
- uniapp require is not defined.
- hook to open the chat from a button or event
- Update window types
- Support Angular 16 HOT 1
- asyncInit incorportation
- visibility="minimized" do hide chat icon in mobile view. HOT 1
- Cannot read properties of null (reading 'useRef')
- Hooks for interacting with the widget
- How to get baseAPI when use customIdentityProvider
- Minimised hides the vue chat widget, if the support is offline. HOT 1
- Update library to support Angular v18 compatibility HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-widget-adapters.