Questions tagged [numeric-input]

For all questions related to getting numeric data entry from users.

One of the common processes in many programs is the ability to request and retrieve numeric data from users. This tag should be used for questions related to that subject.

45 questions
21
votes
7 answers

Show only number keyboard on Ionic/Cordova app

I have two problems in my Ionic/Cordova app, both with numeric keyboard that I not have option to show it. 1) Password input that needs to show a numeric keyboard. It's showing a alpha numerical keyboard. If I change to numeric, I can't hide the…
7
votes
4 answers

Faster than scanf?

I was doing massive parsing of positive integers using scanf("%d", &someint). As I wanted to see if scanf was a bottleneck, I implemented a naive integer parsing function using fread, just like: int result; char c; while (fread(&c, sizeof c, 1,…
Jo So
  • 25,005
  • 6
  • 42
  • 59
7
votes
1 answer

Shiny numericInput() does not respect min and max values

In Shiny, if I have a numericInput as an input, when the user manually enters a value, it is not recognizing or respecting the max/min value and allows any number.If the user selects an arrow for the dropdown it respects the values but just not when…
Dante Smith
  • 561
  • 1
  • 6
  • 21
5
votes
3 answers

How to format the input of Shiny updated numericInput but not change the actual value?

In the following example, the numberInput "Number C" is calculated and updated as "Number A" divided "Number B". When the result is an infinite decimal, this leads to a number with lots of digits to "Number C". I would like to round the infinite…
www
  • 38,575
  • 12
  • 48
  • 84
2
votes
1 answer

How to show blank instead of 0 in a numeric input element

HTML numeric input in form is defined as @Html.TextBoxFor(m => Model.Products[i].Soodkogus, new { type = "number", min = 0, @class = "quantity" }) This produces input boxes with content 0. How to make the input box blank if its value is 0?…
Andrus
  • 26,339
  • 60
  • 204
  • 378
2
votes
3 answers

Detect numeric input's arrow has been clicked React

I'm wondering if there is any way to detect that numeric input's arrow has been clicked. OnChange event function is called then arrow has been clicked or input value has been changed with keyboard. I want to find a way to detect change when only…
Gagik
  • 96
  • 1
  • 6
2
votes
1 answer

C# numeric onscreen keyboard

I'm developing app for tablet with Win 8.1. I've got some TextBoxes with numeric input only and I need to popup numeric onscreen keyboard instead of standard one when entered. There's InputScope for WinPhone. Exists anything similar for Win 8.1?
David Pivovar
  • 115
  • 1
  • 10
2
votes
1 answer

Insert a numeric input for each row - R Shiny

I have a complex code that generates a big matrix, but here I attach a simple, reproducible example in order to explain clearly what I want: Here's the code: # ui.R library(shiny) shinyUI( mainPanel("Table Output", …
GrilloRob
  • 262
  • 1
  • 3
  • 15
2
votes
1 answer

Accepting only integers for TIC TAC TOE

Here's this TIC TAC TOE Game i have created using Python.. import os os.system('cls') i = 0 #Exiter def exithoja(): import sys raw_input sys.exit() #Displays Win or Draw def diswin(name,grid): i = checkwin(grid) …
Kunal Gupta
  • 449
  • 3
  • 22
1
vote
1 answer

R Shiny - uiOutput causes numericInput to deselect when user is still typing in

I'm trying to create a data collection tool on R Shiny where the user can select as many categories as apply to them and then enter values for each. I've used uiOutput to allow the user to add a new category choice after clicking an action…
Izzy
  • 13
  • 2
1
vote
1 answer

Angular 11 two way binding for a numeric field: backspace not working as expected and giving junk values whenever pressed

I am working with Angular 11 and came across two way binding for quantity field which is an input field of the type number. Problem arrives when I try to use backspace for the quantity field input. It gives junk values which are then displayed with…
1
vote
2 answers

Set a default value in shiny inputs (in case the user deletes it in the UI)

I am trying to set a default (or fallback) value for numericInput() in my shiny app to prevent NAs. I am aware that the NA can be dealt with later in the server.r, but was wondering if there is a more elegant way of replacing the value within the…
fschier
  • 180
  • 10
1
vote
0 answers

r shiny: updating rhandsontable default input from search in data base

I'm trying to create a shinny app with a default rhandsontable table, then the user has two options to update it: completing directly by hand on the rhandsontable table or searching the data from a database using a number input and an…
1
vote
0 answers

Numericinput with filter in react

How do I list the numeric input according to the allowed value in the api. For example, when 10 is selected, 10 values should be listed in the table.
Salih Balsever
  • 189
  • 1
  • 3
  • 11
1
vote
1 answer

lapply fails to assign label in creating numericInput within a function

Lapply with labels = names(x), returns weird shiny NULL HTML class; lapply with labels = as.character(names(x)), returns the correct HTML class but doesn't put a label. Any ideas why? REPREX: library(shiny) items <- list( "A" = "a", "B", =…
Carlos Mercado
  • 165
  • 1
  • 5
1
2 3