Merge pull request #15307 from agrippanux/agrippanux/add-disableRandomColor

Agrippanux/add disable random color
This commit is contained in:
Paul van Brenk
2017-03-22 11:49:07 -07:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for react-tagcloud v0.4.0
// Type definitions for react-tagcloud v1.1.0
// Project: https://github.com/madox2/react-tagcloud
// Definitions by: wassname <https://github.com/wassname/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -15,6 +15,7 @@ declare namespace ReactTagCloud {
renderer?: Function;
className?: string;
onClick?: Function;
disableRandomColor?: boolean;
}
interface TagCloudClass extends React.ComponentClass<TagCloudProps> { }
+1
View File
@@ -19,6 +19,7 @@ ReactDOM.render(
maxSize={35}
tags={data}
shuffle={false}
disableRandomColor={false}
onClick={(tag:string) => console.log("clicking on tag:", tag)} />,
document.getElementById("simple-cloud")
);