Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from soyjavi/docs
First version of documentation
- Loading branch information
Showing
27 changed files
with
401 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Aside | ||
|
||
``` | ||
var Aside = require('react-toolbox/components/aside'); | ||
<Aside> | ||
<header/> | ||
<section> | ||
<h1>Hello World</h1> | ||
</section> | ||
<footer/> | ||
</Aside> | ||
``` | ||
|
||
## Properties | ||
|
||
| Name | Type | Default | Description| | ||
|:- |:-: | :- |:-| | ||
| **active** | Bool | false | If true, component will be show by default.| | ||
| **className** | String | | Sets the class-styles of the Component.| | ||
| **hideable** | Bool | false | If true, the componente can be hideable clicking in it.| | ||
| **type** | String | "left" | Type of the component, overwrite this property if you need set a different stylesheet. Options: "left" or "right"| | ||
|
||
## Methods | ||
|
||
#### show | ||
Show component. | ||
|
||
``` | ||
aside_instance.show(); | ||
``` | ||
|
||
#### hide | ||
Hide component. | ||
``` | ||
aside_instance.hide(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Aside | ||
|
||
``` | ||
var Autocomplete = require('react-toolbox/components/autocomplete'); | ||
var data = [ | ||
{ '1': 'Never' }, | ||
{ '2': 'Every Night' }, | ||
{ '3': 'Weeknights' }, | ||
{ '4': 'Weekends' }, | ||
{ '5': 'Weekly' }, | ||
]; | ||
<Autocomplete label="Period" dataSource={data} value='4' /> | ||
``` | ||
|
||
## Properties | ||
|
||
| Name | Type | Default | Description| | ||
|:- |:-: | :- |:-| | ||
| **className** | String | | Sets the class-styles of the Component.| | ||
| **colors** | Object | | JSON data representing all colors per key in the dropdown.|| | ||
| **dataSource** | Object | | JSON data representing all items in the component.| | ||
| **disabled** | Boolean | | If true, component will be disabled.| | ||
| **error** | String | | Sets the error string.| | ||
| **exact** | Bool | true | If true, component only accepts values from dataSource property..| | ||
| **label** | String | | The text string to use for the floating label element.| | ||
| **multiple** | Bool | true | If true, component can hold multiple values.| | ||
| **onChange** | Function | | Callback function that is fired when the components's value changes.| | ||
| **required** | Boolean | | If true, component needs has a value.| | ||
| **type** | String | "text" | Type of the component, overwrite this property if you need set a different stylesheet.| | ||
| **value** | String | | Default value using JSON data.| | ||
|
||
## Methods | ||
|
||
#### getValue | ||
Returns the value of the input. | ||
|
||
``` | ||
input_instance.getValue(); | ||
``` | ||
|
||
#### setValue | ||
Sets the value of the input element. | ||
|
||
``` | ||
input_instance.setValue(newValue); | ||
``` | ||
|
||
#### setError | ||
|
||
``` | ||
input_instance.setError("Something is wrong..."); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Button | ||
|
||
``` | ||
var Button = require('react-toolbox/components/button'); | ||
<Button caption="Login" /> | ||
<Button caption="Primary" className="primary" icon="access_alarm" /> | ||
<Button caption="Secondary" className="secondary" /> | ||
<Button caption="Disabled" disabled /> | ||
<Button type="circle" icon="access_alarm" /> | ||
<Button type="circle" icon="explore" className="primary" /> | ||
<Button type="circle" icon="zoom_in" className="secondary" /> | ||
<Button type="circle" icon="input" disabled={true} /> | ||
``` | ||
|
||
## Properties | ||
|
||
| Name | Type | Default | Description| | ||
|:- |:-: | :- |:-| | ||
| **caption** | String | | The text string to use for the floating label element.| | ||
| **className** | String | | Set the class-styles of the Component.| | ||
| **disabled** | Boolean | | If true, component will be disabled.| | ||
| **icon** | String | | Default value using JSON data.| | ||
| **loading** | Boolean | | If true, component will be disabled and show a loading animation.| | ||
| **type** | String | "text" | Type of the component, overwrite this property if you need set a different stylesheet.| | ||
|
||
## Methods | ||
|
||
#### loading | ||
If true, component will be disabled and show a loading animation. | ||
|
||
``` | ||
input_instance.loading(true); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Dialog | ||
|
||
``` | ||
var Dialog = require('react-toolbox/components/dialog'); | ||
var actions = [ | ||
{ caption: "Cancel", style: "transparent", onClick: this.onClose } | ||
, | ||
{ caption: "Save", style: "transparent", onClick: this.onSave } | ||
] | ||
<Dialog title='Hello World' actions={actions}> | ||
/* -- more content -- */ | ||
</Dialog> | ||
``` | ||
|
||
## Properties | ||
|
||
| Name | Type | Default | Description| | ||
|:- |:-: | :- |:-| | ||
| **actions** | Array | | A array of actions callbacks for the component.| | ||
| **active** | Boolean | | If true, component will be shows.| | ||
| **className** | String | "normal" | Set the class-styles of the Component.| | ||
| **title** | String | | The text string to use for the title of the component.| | ||
| **type** | String | | Type of the component, overwrite this property if you need set a different stylesheet.| | ||
|
||
## Methods | ||
|
||
#### show | ||
Shows the dialog. | ||
|
||
``` | ||
dialog_instance.show(); | ||
``` | ||
|
||
#### hide | ||
Hides the dialog. | ||
|
||
``` | ||
dialog_instance.hide(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Dropdown | ||
|
||
|
||
``` | ||
var DropDown = require('react-toolbox/components/dropdown'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
### | ||
@todo | ||
v2 | ||
- can set a icon like dispatcher | ||
- can set different template (maybe use a kind of mixin ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# FontIcon | ||
|
||
``` | ||
var FontIcon = require('react-toolbox/components/font_icon'); | ||
<FontIcon value='add' /> | ||
``` | ||
|
||
## Properties | ||
|
||
| Name | Type | Default | Description| | ||
|:- |:-: | :- |:-| | ||
| **value** | String | | The keyString for the icon you want representate.| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
### | ||
@todo | ||
### | ||
|
||
|
||
# require './style' | ||
|
||
module.exports = React.createClass | ||
|
Oops, something went wrong.