Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In my Python add-in I have an integer value that can be between 15 and 32 and the initial value is 22. I'd like to use a slider but it does not have an initial value.
def addIntegerSliderCommandInput(self, id: str, name: str, min: int, max: int, hasTwoSliders: bool) -> IntegerSliderCommandInput:
A spinner does have the initial value:
def addIntegerSpinnerCommandInput(self, id: str, name: str, min: int, max: int, spinStep: int, initialValue: int) -> IntegerSpinnerCommandInput:
How do I set the initial value for a slider? At present this works fine if and only if an acceptable initial value is 0, which in my case is never true. Very often the initial value will be computed based on some other dependent variables and I will need to update the "initial" value inside the change handler. Is there some sample code with this in it?
Solved! Go to Solution.