Skip to content

Hide parameter in Validators to hide Piccolo Admin table link from sidebar if the validators fail. #281

Description

@amazingakai

There should be a hide parameter in Validators which would hide Piccolo Admin table link from sidebar if the validator fails.

For Example, the following table won't be shown if the validator fails:

VALIDATOR_FUNCTIONS: list[ValidatorFunction] = ...

TABLE_CONFIG = TableConfig(
    MyTable,
    validators=Validators(every=VALIDATOR_FUNCTIONS, hide=True),
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions