243
Views
6
Comments
Solved
How to display arrow in input type number for reactive website?
Question
Application Type
Reactive

Hi, i wanted to show the arrow in my input (input type - numbers) for reactive web. How can I achieve this? Thank you in advance! 

Below I attach screenshot for my current input.


2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Syakir,

For the mentioned objective, try to define the below mentioned CSS definition in the Screen Scope or the module Scope (Style Sheet section)

[data-input][type="number"]::-webkit-inner-spin-button, 
[data-input][type="number"]::-webkit-outer-spin-button {  
   -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

See this sample app-NumberInputTask

Note: Make sure that the Input widget Type is Number

Hope this helps you!


Kind regards,

Benjith Sam

UserImage.jpg
Syakir

Hi thanks a lot sir it really works! But may I know how to set the min and max for the input?

Below I attach a screenshot with your solution :D


2021-03-18 21-03-15
Benjith Sam
 
MVP
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Syakir,

There's the HTML min and max attributes you can use to limit the values that can be entered, and the step attribute to define the step value. You can put these in the Extended Properties of the Input Widget.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Syakir,

What "arrow" do you mean?

UserImage.jpg
Syakir

Like this one sir

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Syakir,

For the mentioned objective, try to define the below mentioned CSS definition in the Screen Scope or the module Scope (Style Sheet section)

[data-input][type="number"]::-webkit-inner-spin-button, 
[data-input][type="number"]::-webkit-outer-spin-button {  
   -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

See this sample app-NumberInputTask

Note: Make sure that the Input widget Type is Number

Hope this helps you!


Kind regards,

Benjith Sam

UserImage.jpg
Syakir

Hi thanks a lot sir it really works! But may I know how to set the min and max for the input?

Below I attach a screenshot with your solution :D


2021-03-18 21-03-15
Benjith Sam
 
MVP
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Syakir,

There's the HTML min and max attributes you can use to limit the values that can be entered, and the step attribute to define the step value. You can put these in the Extended Properties of the Input Widget.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.