Skip to content

Override operator label or widget #821

Answered by ukrbublik
cosimasgenome asked this question in Q&A
Discussion options

You must be logged in to vote

Depending on the field:

fields: {
  color: {
    label: "Color",
    type: "select",
    // override operator label
    widgets: {
      select: { // depends on `type`
        opProps: {
          is_not_empty: {
            label: "is not empty"
          },
        }
      }
    },
}

Or depending on the field type:

types: {
  text: merge(InitialConfig.types.text, {
    widgets: {
      text: { // depends on `type`
        opProps: {
          is_not_empty: {
            label: "is not empty"
          },
        }
      }
    }
  }),
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cosimasgenome
Comment options

Answer selected by cosimasgenome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants