mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #15307 from agrippanux/agrippanux/add-disableRandomColor
Agrippanux/add disable random color
This commit is contained in:
Vendored
+2
-1
@@ -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> { }
|
||||
|
||||
|
||||
@@ -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")
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user