components APIs
- SEO
- Nav
- Header
- Button
- TagsBlock
- Link
- Alert
- Sidebar
- A
- Login
- Signup
- Chat
- App
- Layout
- BlogList
- RouteGuard
- Spinner
- Profile
- InfoBox
- Widget
- SimpleTable
- SimpleLineChart
- SimpleRandarChart
- SimpleBarChart
- PageTitle
- EnhancedTable
- BaseChartCard
- FullPageSpinner
- CodeChangesGraph
- CodeChangesLineGraph
- ActivityDatesAndTimesGraph
- TimeToFirstResponseGraph
- ContributorsTable
- IssuesNewGraph
- IssuesClosedGraph
- IssuesActiveGraph
- IssuesAgeGraph
- IssuesResponseTimeGraph
- IssuesResolutionDurationGraph
- SearchInput
- ReviewsAcceptedGraph
- ReviewsDeclinedGraph
- ReviewsDurationGraph
- IntegrationCard
- GithubLogin
- Tasks
- CustomInput
- RegularCard
- Table
- ItemGrid
- HeaderLinks
- Footer
- StatsCard
- ChartCard
- P
- Small
- SnackbarContent
- Snackbar
- Quote
- Muted
- Primary
- Info
- Success
- Warning
- Danger
- Tabs
- Tab
- T
- Message
- FieldSet
- Form
- Modal
- CenteredCard
- CardHeader
- CardContent
- WithLoader
- List
- Icon
- ListHeader
- ListItem
- ListColumn
- DropdownMenu
- DropdownMenuItem
- withRouter
- withSettings
- withForm
- withActions
- RetractingLabelInput
- ErrorFor
- CardFooter
- SubmitField
- BarChart
- Card
- Title
- RichSelect
- Label
- Switch
- CardNav
- ButtonIcon
- TopNavbar
- SidebarContainer
- NotFound
- Store
- Router
- MainErrorBoundary
- Settings
- ExternalSettings
- FormField
- Avatar
- AvatarGroup
- Flex
- IconButton
- LeftRail
- ChatToolbar
- ChatInput
- MessageList
- ImageUpload
- ChatAvatar
- SearchUsers
- ChatList
- RailHeader
- Checkbox
- Filters
- ProductsGrid
- CartContents
- HomepageCollectionsGrid
- FeaturedProducts
- ImageGallery
- ProductQuantityAdder
OtherRelated APIs
components#SidebarContainer JavaScript Examples
The following examples show how to use
components#SidebarContainer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: app.jsx From apps with GNU Affero General Public License v3.0 | 5 votes |
renderFull(Component, props) {
const { menu, settings, title } = this.props;
const { sidebarActive } = this.state;
const { route } = this.props;
const mainMenu = new Map(menu.get('main'));
const navMenu = new Map([]);
// we add the normal "nav" menu entries...
menu.get('nav').forEach((v, k) => navMenu.set(k, v));
const content = (
<div className="bulma-container">
<Component {...props} route={route} />
</div>
);
const sidebar = (
<Sidebar
active={sidebarActive}
collapsed={true}
mainMenu={mainMenu}
navMenu={navMenu}
>
<Menu menu={mainMenu} onToggle={this.handleSidebarToggle} />
<Menu
menu={navMenu}
onToggle={this.handleSidebarToggle}
mobileOnly
/>
</Sidebar>
);
return (
<Fragment>
<TopNavbar
active={sidebarActive}
menu={navMenu}
settings={settings}
title={title}
onToggle={this.handleSidebarToggle}
/>
<SidebarContainer
active={true}
sidebar={sidebar}
content={content}
/>
</Fragment>
);
}