Interface: WorkerLayoutControlProps<T>
Properties for WorkerLayoutControl
component
Type Parameters
• T
Properties
autoRunFor?
optional
autoRunFor:number
Option to tell what we do when the component is mounted
-1
means that we do nothing (it's the same as no value)0
means that we start the algo (and don't auto stop it)X
mans that we start the algo, and stop it after X milliseconds
Defined in
children?
optional
children: [Element
,Element
]
It's possible to customize the button, by passing to JSX Element. First one is for the "start layout", and the second to "stop layout". Example :
<WorkerLayoutControl>
<>
<span>Start</span>
<span>Stop</span>
</>
</WorkerLayoutControl>
Defined in
className?
optional
className:string
HTML class
Defined in
id?
optional
id:string
HTML id
Defined in
labels?
optional
labels:object
Map of the labels we use in the component. This is usefull for I18N
start
start:
undefined
|string
stop
stop:
undefined
|string
Defined in
layout
layout:
LayoutWorkerHook
<T
>
The layout hook to use
Defined in
settings
settings:
T
Settings of the layout.
Defined in
style?
optional
style:CSSProperties
HTML CSS style