Skip to content

Commit

Permalink
Add style description to readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hiroyoshi committed Apr 6, 2016
1 parent 83384e0 commit ee64d78
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,16 @@ export default class ExampleDnD extends Component {
// ToDo: You can set your component area divider!
// const areaLine = ["20px 20px", "220px 120px"];

// You can set your style to dnd item.
const yourStyle = {
background: "blue"
};

return (
<div>
{somethings.map(something =>
<DnDItem dropAction={dropAction} hoverAction={hoverAction} id={something.id} key={something.id}>
<div>{something.name}</div>
<div style={yourStyle}>{something.name}</div>
</DnDItem>
)}
</div>
Expand Down

0 comments on commit ee64d78

Please sign in to comment.