Skip to content

Provide a way to filter toolbar controls in Query block variations #50458

@jeremyfelt

Description

@jeremyfelt

What problem does this address?

When registering a variation for the Query block, it is possible to define the perPage, offset, and pages attributes so that they are prefilled with the variant is added. In some cases, this is a specific variation in which these attributes should not change. Currently, it is possible to immediately change these attributes through the "Display settings" dropdown in the toolbar.

What is your proposed solution?

It would be great if the individual attributes—perPage, offset, and pages—could be removed through the allowedControls property. It could also be useful to allow for the entire removal of the "Display settings" dropdown itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions