Forum Discussion
Up Down Arrow for Numeric Inputs in Custom Visual
Hello there,
I want to show up down arrow for numeric field in custom visual just like we have for font-size. I am using following syntax for numeric field
"decimalPlaces": {
"displayName": "Value Decimal Places",
"type": {
"numeric": true
}
}Which produces following results.
It would be better if we can show arrows for quick value changes. How do I add arrows to this field?
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
-
9 Replies
- v-chuncz-msftCommunity Support
- v-viigCommunity Champion
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
- bhavesh-jadavHelper I
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?