DocSpace-buildtools/web/ASC.Web.Common/src/components/Layout
2020-09-19 18:24:48 +03:00
..
locales Fix translation 2020-07-27 15:51:04 +03:00
sub-components Web: Client: Fixed redirect to defaultPage 2020-09-19 18:24:48 +03:00
i18n.js Web Common: simplified configuration of i18n 2020-08-14 22:32:21 +03:00
index.js Web: Client: Fixed redirect to defaultPage 2020-09-19 18:24:48 +03:00
layout.stories.js web: Common: Added withProvider decorator for storybook 2020-01-10 16:58:46 +03:00
layout.test.js ASC.Web.Common: Layout: hover delay increased 2019-12-23 15:51:08 +03:00
README.md web: Common: Moved Layout and PageLayout to asc-web-common 2019-12-20 14:35:53 +03:00

Layout

Default page layout

Usage

import { Layout } from "asc-web-common";
<Layout
  currentUser={currentUser}
  currentUserActions={currentUserActions}
  availableModules={availableModules}
  currentModuleId={currentModuleId}
  onLogoClick={onLogoClick}
  asideContent={asideContent}
  isBackdropVisible={false}
  isNavHoverEnabled={true}
  isNavOpened={false}
  isAsideVisible={false}
>
  PageLayout component content
</Layout>

Properties

Props Type Required Values Default Description
isBackdropVisible bool - - false If you need display Backdrop
isNavHoverEnabled bool - - true If you need hover navigation on Backdrop
isNavOpened bool - - false If you need display navigation
isAsideVisible bool - - false If you need display aside
currentUser object - - null Need for display current user information
currentUserActions array - - [ ] Actions for current user
availableModules array - - [ ] Need for display modules list
currentModuleId string - - - Current module
onLogoClick func - - - Click on logo
asideContent node - - - Content for aside display
children node - - - Main content