SevenOutman on docs-node-16
SevenOutman on main
build(engines): upgrade lockfil… (compare)
SevenOutman on docs-node-16
build(engines): upgrade lockfil… docs: remove lockfileVersion ex… (compare)
offline
document.addEventListener('offline', () => {/*your code*/})
you can use it with React state, like this (pseudo code)
function App() {
const [online, setOnline] = useState(navigator.onLine);
useEffect(() => {
document.addEventListener('offline', () => setOnline(false));
/* Or Jquery
* $(document).on('offline', () => setOnline(false);
*/
}, []);
return online ? <MyWebApp /> : <MyWebAppPlaceHolderWhenOffline />
}
or class
class App extends React.Component {
constructor(props) {
super(props);
this.state = { online: navigator.onLine }
document.addEventListener('offline', () => this.setState({online: false}));
/* Or Jquery
* $(document).on('offline', () => this.setState({online: false}));
*/
}
render() {
return this.state.online ? <MyWebApp /> : <MyWebAppPlaceHolderWhenOffline />
}
}
Hello, why, the footer is not in the bottom of page?
https://codesandbox.io/s/0i706
add flex-grow: 1
to your Sidenav in Sidebar
Hi Everyone! I'm facing a couple of challenges when using input-type rsuite components:
set focus on an InputPicket. Tried autoFocus property and it doesn't work.
allow user to use his keyboard to navigate through the control. E.g: InputPicker , DatePicker
Thank you!