3.0.27 • Published 5 years ago

the-view v3.0.27

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

the-view

Build Status npm Version JS Standard

View of the-components

Installation

$ npm install the-view --save

Usage

'use strict'

import React from 'react'
import { TheView, TheViewStyle } from 'the-view'
import { TheIcon } from 'the-icon'
import { TheSpinStyle } from 'the-spin'
import { TheButtonStyle } from 'the-button'
import { TheMenuStyle, TheDropdownMenu } from 'the-menu'
import { TheRouter } from 'the-router'

class ExampleComponent extends React.PureComponent {
  render () {
    const {Header, Body} = TheView
    return (
      <div>
        <TheRouter.Hash>
          <TheSpinStyle/>
          <TheMenuStyle/>
          <TheButtonStyle/>
          <TheViewStyle/>
          <TheView>
            <Header
              leftIcon={TheView.BACK_ICON}
              leftTo='/'
              icon={'fa fa-car'}
              text='This is a view'
              rightIcon={TheView.DROPDOWN_ICON}
              onRightClick={() => console.log('Right clicked!')}
            />
            <Body>
            <div>
              <TheView.Message>This is view message</TheView.Message>
            </div>
            </Body>
          </TheView>

          <hr/>

          <TheView spinning/>

          <hr/>

          <TheView>
            <Header leftIcon={TheView.BACK_ICON}
                    leftText='Back'
                    leftTo='/'
                    text='This is a view'
                    icon='fa fa-car'
                    rightText='Menu'
                    onRightClick={() => console.log('Right clicked!')}
                    rightNode={
                      <TheDropdownMenu icon={''}
                                       label={<TheIcon className={TheView.DROPDOWN_ICON}></TheIcon>}
                                       righted
                      >
                        <TheDropdownMenu.Item>Menu A</TheDropdownMenu.Item>
                        <TheDropdownMenu.Item>Menu B</TheDropdownMenu.Item>
                      </TheDropdownMenu>
                    }
            />
          </TheView>

        </TheRouter.Hash>
      </div>

    )
  }
}

export default ExampleComponent

Components

TheView

View of the-components

Props

NameTypeDescriptionDefault
fixedboolMark as fixedfalse
spinningboolfalse
role'article'

TheViewStyle

Style for TheView

Props

NameTypeDescriptionDefault
optionsobjectStyle options{}

License

This software is released under the MIT License.

Links

3.0.27

5 years ago

3.0.26

5 years ago

3.0.25

5 years ago

3.0.24

5 years ago

3.0.23

5 years ago

3.0.22

6 years ago

3.0.21

6 years ago

3.0.20

6 years ago

3.0.19

6 years ago

3.0.18

6 years ago

3.0.17

6 years ago

3.0.16

6 years ago

3.0.15

6 years ago

3.0.14

6 years ago

3.0.13

6 years ago

3.0.12

6 years ago

3.0.11

6 years ago

3.0.10

6 years ago

3.0.9

6 years ago

3.0.8

6 years ago

3.0.7

6 years ago

3.0.6

6 years ago

3.0.5

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

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.7

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