DocSpace-client/packages/asc-web-components/row
2021-12-30 18:54:41 +03:00
..
index.js Web:Components:Row:Changed the render to ContentElement. 2021-12-30 18:54:41 +03:00
README.md Web: Components/Common: fix imports 2021-02-26 00:19:45 +03:00
row.stories.js Web: Components: added story for Row 2021-03-10 13:02:57 +03:00
row.test.js Web: Components: Row: Removed unused test 2021-04-02 18:05:26 +03:00
styled-row.js Web: Common/Components/Files: fixed styles when selecting row 2021-09-30 10:55:26 +03:00

Row

Displays content as row

Usage

import  Row  from "@appserver/components/row";
<Row checked={false} contextOptions={[]}>
  {children}
</Row>

Properties

Props Type Required Values Default Description
checked bool - - - Required to host the Checkbox component. Its location is fixed and it is always the first. If there is no value, the occupied space is distributed among the other child elements.
className string - - - Accepts class
contextButtonSpacerWidth string - - 32px Required for the width task of the ContextMenuButton component.
contextOptions array - - - Required to host the ContextMenuButton component. It is always located near the right border of the container, regardless of the contents of the child elements. If there is no value, the occupied space is distributed among the other child elements.
data object - - - Current row item information.
element element - - - Required to host some component. It has a fixed order of location, if the Checkbox component is specified, then it follows, otherwise it occupies the first position. If there is no value, the occupied space is distributed among the other child elements.
id string - - - Accepts id
needForUpdate function - - - Custom shouldComponentUpdate function
onSelect function - - - Event when selecting row element. Returns data value.
style obj, array - - - Accepts css style