Skip to content

Do not display operator select for only one operator #327

@drasha

Description

@drasha

Hi,

is there a way to not include an operator select with only one operator and have custom HTML or just text instead? For example, in case of radio buttons I am always using equal and the select is distracting and superfluous.

I was able to go around this problem by altering QueryBuilder.prototype.createRuleOperators and checking for operators.length, but that seems to me a bit hackish.

Any idea how to do it better?

Thanks,
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions