AllenNeuralDynamics / aind-metadata-entry-js

Metadata entry using javascript
https://metadata-entry.allenneuraldynamics.org
MIT License
1 stars 1 forks source link

Create decimal drop down #178

Closed micahwoodard closed 1 month ago

micahwoodard commented 2 months ago

fixes #148

micahwoodard commented 2 months ago

Hi Helen I've changed the schemaHandler so it deals with decimals. It saves as a string now and also complains if you have a letters in the text box. The error message isn't super descriptive though and also I haven't made any unit tests for this. Let me know if you think this is the right approach or you were thinking of something else!

micahwoodard commented 1 month ago

I've also been trying to create a custom textbox widget that will only allow you to input numeric and decimal values. Still working on the right regular expression though

micahwoodard commented 1 month ago

Okay regular expression fixed so only numerical or decimal values allowed