Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Bind an input field to a slider

$
0
0

Hi,

 

I have table with in each row an input field and a slider (and much more)...

I want to change the value of the input field by changing the slider (liveChange).

 

I get the value from the liveChange event but I'm able to get the row.

Here is my code:

 

<ColumnListItem>  <cells>  <ObjectIdentifier title="{Description}" />  <Input value="{Placeholder}" />  <Slider   value="50"   width="100%"  liveChange="onChangeSlider"  change="onChangedSlider" />  </cells>  </ColumnListItem>

 

 

onChangeSlider: function(evt) {  var value = evt.getSource().getValue();  console.log('value has been changed: ' + value);  var currentRow = $(evt).closest('tr');  console.log(currentRow.id); // I'm just getting "undefined"  },

Thanks in advance

Matt


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>