mistic100 / mistic100/jQuery-QueryBuilder

nb_inputs with select and input fields combined

Open
#998 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.7k
Forks
544
PR merge metrics
No merged PRs in 30d

Description

Is there any way I can use both select and input.
operators
this.conditionList.forEach(value => {
this.operators.push({ type: value.name, optgroup: 'custom', nb_inputs: value.nbInputs + num, multiple: false, apply_to: ['number', 'string'] })
})
filters
this.filters.push({
id: value.fieldCode, label: value.fieldName, type: value.fieldType, validation: { allow_empty_value: false }, input: "select", values: {
0: [ "Fixed"],
1: ["Percentage"]
}
If I set this for everthing it is selectable but I want only the first field to be selectable. And for the other input fields I want to add a placeholder. Any suggestion would be a great help.

Thanks :)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the operators and filters configuration shown in the issue, then read the project documentation or source for nb_inputs and the select input type. The change is complete when the first field remains selectable while subsequent input fields display placeholders.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.