1.0.99 • Published 6 years ago

criterion-frame v1.0.99

Weekly downloads
7
License
GPL-3.0
Repository
github
Last release
6 years ago

criterion-frame

Internal React frame for projects

NPM JavaScript Style Guide Storybook Build Status

Install

npm install --save criterion-frame

Usage

See stories in Storybook

Components

CriterionFrame

The frame of a Criterion webapp. It comes in a uncontrolled and controlled mode. The default is uncontrolled. It includes a topbar with logout callback and userInfo and a menu, that you can config with the MenuConfig prop. On a menu select it calls the onItemSelected callback.

Props

children

The children to be rendered as content

type: node

menuConfig

Array of menu config items. It must contain fieldsÉlabel, icon, path

type: array

onItemSelected

The callback is called when a menu item is selected from the menu

type: func

onLogout

The callback function for the logout button click

type: func

selectedIndex

If set the component is in controlled mode. You must handle the correct selectIndex value.

type: number

style

Optional param for styling the container div

type: object

title

The title that the frame displays in the TopBar

type: string

userInfo

UserInfo object. It must contain a userName field

type: object

License

GPL-3.0 © Pjata

1.0.99

6 years ago

1.0.97

6 years ago

1.0.96

6 years ago

1.0.94

6 years ago

1.0.93

6 years ago

1.0.92

6 years ago

1.0.91

6 years ago

1.0.90

6 years ago

1.0.89

6 years ago

1.0.87

6 years ago

1.0.86

6 years ago

1.0.85

6 years ago

1.0.83

6 years ago

1.0.82

6 years ago

1.0.81

6 years ago

1.0.80

6 years ago

1.0.79

6 years ago

1.0.78

6 years ago

1.0.77

6 years ago

1.0.76

6 years ago

1.0.75

6 years ago

1.0.74

6 years ago

1.0.73

6 years ago

1.0.71

6 years ago

1.0.69

6 years ago

1.0.68

7 years ago

1.0.67

7 years ago

1.0.66

7 years ago

1.0.65

7 years ago

1.0.64

7 years ago

1.0.62

7 years ago

1.0.61

7 years ago

1.0.60

7 years ago

1.0.58

7 years ago

1.0.56

7 years ago

1.0.57

7 years ago

1.0.55

7 years ago

1.0.54

7 years ago

1.0.52

7 years ago

1.0.51

7 years ago

1.0.50

7 years ago

1.0.49

7 years ago

1.0.48

7 years ago

1.0.47

7 years ago

1.0.46

7 years ago

1.0.45

7 years ago

1.0.41

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.37

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago