Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SliderItem: cannot set showValue to false

    Code:
    isc.DynamicForm.create(
      {
        fields: [{
          type: "slider",
          minValue: 1,
          maxValue: 5,
          numValues: 5,
          title: "Rating",
          showValue: false,
        }],
      })
    Fails with "this.showValue is not a function". Can be reproduced with SmartClient's 11.1p and 12.0p showcases.

    Would there be any other way besides creating SliderItem's by myself through isc.SliderItem.create() to prevent the class method 'showValue' to be overwritten by this boolean?

    #2
    SliderItem does not have a boolean property showValue, but it does have a method showValue(), that you clobbered and thus caused this issue.

    But you seem to understand that, so it's not clear why you've posted this - are you saying you want to have a custom property "showValue" on the SliderItem even though that name is already in use? That can't be done, as is the case in most programming environments.

    Note that calling isc.SliderItem.create() is invalid code, and causes a warning.

    Comment


      #3
      Thank you for your reply. I mixed up SliderItem and Slider. Everything is fine using sliderProperties: { showValue: false } instead.

      Comment

      Working...
      X