Skip to main content

Interface: WorkerLayoutControlProps

Defined in: WorkerLayoutControl.tsx:13

Properties for WorkerLayoutControl component

Properties

autoRunFor?

optional autoRunFor: number

Defined in: WorkerLayoutControl.tsx:40

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

children?

optional children: [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?

optional className: string

Defined in: WorkerLayoutControl.tsx:22

HTML class


id?

optional id: string

Defined in: WorkerLayoutControl.tsx:17

HTML id


labels?

optional labels: object

Defined in: WorkerLayoutControl.tsx:61

Map of the labels we use in the component. This is usefull for I18N

start?

optional start: string

stop?

optional stop: string


layout

layout: LayoutWorkerHook

Defined in: WorkerLayoutControl.tsx:32

The layout hook to use


style?

optional style: CSSProperties

Defined in: WorkerLayoutControl.tsx:27

HTML CSS style