4.0.1 • Published 5 years ago

the-done v4.0.1

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

the-done

Build Status npm Version JS Standard

Done page of the-components

Installation

$ npm install the-done --save

Usage

Live Demo is hosted on GitHub Page

'use strict'

import React from 'react'
import { TheLinkStyle } from 'the-link'
import { TheButtonStyle } from 'the-button'
import { TheRouter } from 'the-router'
import { TheDone, TheDoneStyle } from 'the-done'

class ExampleComponent extends React.PureComponent {
  render () {
    return (
      <TheRouter.Hash>
        <TheLinkStyle/>
        <TheButtonStyle/>
        <TheDoneStyle/>
        <TheDone message="You are done!"
                 actionText="Return to Top"
                 onAction={() => window.location.reload()}
                 subActionText="Do something else"
                 onSubAction={() => window.location.reload()}
                 linkText={'Some Link'}
                 linkTo={String(new Date().getTime())}
                 onLinkClick={() => console.log('link clicked')}
        >
        </TheDone>
      </TheRouter.Hash>

    )
  }
}

export default ExampleComponent

Components

TheDone

Done page of the-components

Props

NameTypeDescriptionDefault
actionTextstringAction button textnull
linkTextstringText of linknull
linkTostringLink urlnull
messagestringnull
onActionfuncHandler for actionnull
onLinkClickfuncHandle link clicknull
onSubActionfuncHandler for sub actionnull
subActionTextstringSub action button textnull

TheDoneStyle

Style for TheDone

Props

NameTypeDescriptionDefault
optionsobjectStyle options{}

License

This software is released under the MIT License.

Links

4.0.1

5 years ago

4.0.0

5 years ago

3.0.14

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

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