mistic100 / mistic100/jQuery-QueryBuilder
nb_inputs with select and input fields combined
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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