IAutoscrollRendering interface
đ Descriptionâ
Interface that specifies the block renderer interface. Used when creating custom blocks.
đ Type declarationâ
interface IAutoscrollRendering { required?: boolean;ReadonlyOptional hideRequiredIndicatorFromName?: boolean;ReadonlyOptional hideAriaDescription?: boolean;ReadonlyOptional hideButtons?: boolean;ReadonlyOptional autoSubmit?: boolean;ReadonlyOptional autoFocus?: boolean;ReadonlyOptional render?: (props: IAutoscrollRenderProps, done?: () => void, cancel?: () => void) => ReactNode;FunctionOptional }
đī¸ Propertiesâ
đˇī¸ autoFocus
â
Specifies if the block can gain focus automatically.
Typeâ
boolean
đˇī¸ autoSubmit
â
Specifies if the block can automatically submit.
Typeâ
boolean
đˇī¸ hideAriaDescription
â
Specifies if the default aria-describedby description should be invisible.
Typeâ
boolean
đˇī¸ hideButtons
â
Specifies if the block buttons should be invisible. This is useful for blocks that implement a question type that can automatically submit.
Typeâ
boolean
đˇī¸ hideRequiredIndicatorFromName
â
Specifies if the required asterisk (*) should be invisible. If this property is not specified or set to false
, the required indicator is shown for required blocks.
Typeâ
boolean
đˇī¸ required
â
Specifies if the block is required.
Typeâ
boolean
âļī¸ Functionsâ
đ§ render
â
Specifies a function that is invoked when the block needs to render. This function should return a valid React component.
Signatureâ
(props: IAutoscrollRenderProps, done?: () => void, cancel?: () => void) => ReactNode
Parametersâ
Name | Type | Optional | Description |
---|---|---|---|
props | IAutoscrollRenderProps | No | Contains the rendering props. |
done | () => void | Yes | Invoke this function when the block is done and the runner can move to the next block. |
cancel | () => void | Yes | Invoke this function when the block wants to cancel and go back to the previous block. |
Return valueâ
Returns the ReactNode
for the block.
Read the Custom blocks guide for an example.