Interface: WorkerLayoutControlProps
Defined in: WorkerLayoutControl.tsx:13
Properties for WorkerLayoutControl component
Properties
autoRunFor?
optionalautoRunFor:number
Defined in: WorkerLayoutControl.tsx:40
Option to tell what we do when the component is mounted
-1means that we do nothing (it's the same as no value)0means that we start the algo (and don't auto stop it)Xmans that we start the algo, and stop it after X milliseconds
children?
optionalchildren: [Element,Element]
Defined in: WorkerLayoutControl.tsx:55
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>
className?
optionalclassName:string
Defined in: WorkerLayoutControl.tsx:22
HTML class
id?
optionalid:string
Defined in: WorkerLayoutControl.tsx:17
HTML id
labels?
optionallabels:object
Defined in: WorkerLayoutControl.tsx:61
Map of the labels we use in the component. This is usefull for I18N
start?
optionalstart:string
stop?
optionalstop:string
layout
layout:
LayoutWorkerHook
Defined in: WorkerLayoutControl.tsx:32
The layout hook to use
style?
optionalstyle:CSSProperties
Defined in: WorkerLayoutControl.tsx:27
HTML CSS style