Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AccessControlProps

Hierarchy

  • AccessControlProps

Index

Properties

Optional disabledPropName

disabledPropName: string

The name of the prop that will be passed to children if modifyReqs are not fulfilled. Defaults to disabled.

Optional disabledPropValue

disabledPropValue: any

The value of the prop that will be passed to children if modifyReqs are not fulfilled. Defaults to true.

Optional displayReqs

Requirements that shall be fulfilled in order for access-controlled components to be rendered. If missing - access-controlled components will always be rendered.

Optional modifyReqs

Requirements that shall be fulfilled in order for rendered access-controlled components to be modifiable (i.e. to not be disabled). If missing - access-controlled components will never be disabled.

Optional render

render: (disabled: boolean) => ReactNode

Render prop. If not provided, component's children will be used instead.

param

indicates whether the access-controlled components shall be disabled.

Type declaration

    • (disabled: boolean): ReactNode
    • Parameters

      • disabled: boolean

      Returns ReactNode

Generated using TypeDoc