Forum Discussion
Up Down Arrow for Numeric Inputs in Custom Visual
- 8 years ago
This is a full list of properties that I know about:
-
weight
-
angle
-
textSize
-
fontSize
-
titleFontSize
-
secFontSize
-
secTitleFontSize
-
outlineWeight
-
gridVerticalWeight
-
gridHorizontalWeight
-
barWeight
-
rowPadding
-
cardPadding
-
imageHeight
-
steppedLayoutIndentation
-
borderThickness
-
preferredCategoryWidth
-
strokeWidth
-
gridlineThickness
-
markerSize
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
-
Power BI has a few hard coded property names that will force PBI to show arrows.
What value range are you instrested in? If there's no specific value range we would recommend to keep it as it.
PBI users actually can use Keyboard Arrows to increase/decrease values.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
It is really convenient to click on arrows to adjust the number. Default Power BI visual shows arrows for numeric inputs so I thought end user would expect similar thing in custom visual.
Also how do I set range for numeric input? Is there a way to do it in capabilities.json file or do I have to manage it in the code?
- v-viig8 years agoCommunity Champion
What default vsiuals are you talking about?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- bhavesh-jadav8 years agoHelper IDefault visuals, for example in card visual to change decimal places you have numeric text box with arrows. Another example is in line and combo charts to adjust stroke width power bi shows numeric text box with arrows.
- v-viig8 years agoCommunity Champion
As mentioned above, Power BI uses special types and hard coded name for such case.
If you wanted to show box with arrow to stroke width you should call your property as: strokeWidth
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals