Q-Table how to check value between two range #9483
Unanswered
akashramtohul4
asked this question in
CLI - PWA mode
Replies: 1 comment 1 reply
-
|
Add a handler on your q-input's, then you can check there for the values. ie. <q-input
:value="props.row.ThresholdStart"
autofocus
mask="#"
fill-mask=" "
reverse-fill-mask
@input="v => { check(v, props.row, 'ThresholdStart', props.row.ThresholdEnd )}"
></q-input>
...// handler
check(v, row, colName, tEnd) {
// pass row object to keep the reference use it like `row[colName]` = v to mutate value
// condition
// display error, mutate model etc...
}
...p.s. Please avoid pasting your code snippet as downloadable file, use markdown code syntax instead to display your code https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello friends
i have a custom table which i can input a value between 2 range , i wanted to prompt the user with an error message if it enter another row with a value within a range that already exist . For example Threshold Start contains 1000 and Threshold End contains 2000 .if i add a new Threshold that is between 1000 and 2000 i should be prompt an error message.
The table should look something like this
Table.txt
Beta Was this translation helpful? Give feedback.
All reactions