let_Maya Napisano Grudzień 8, 2021 Zgłoś Udostępnij Napisano Grudzień 8, 2021 I am trying to rewrite this jQuery code to Typescript. valueChanged(newValue) { let editSlider = $(this.editSlider).data("ionRangeSlider"); if (editSlider && editSlider.old_from != newValue){ editSlider.update({ from: newValue }); } let readOnlySlider = $(this.readOnlySlider).data("ionRangeSlider"); if (readOnlySlider && readOnlySlider.old_from != newValue) { readOnlySlider.update({ from: newValue }); } } <div show.bind="editOnly || parentVM.editMode != 0" class="form-group"> <label-for> <small>${label}</small> </label-for> <input ref="editSlider" value.two-way="value" type="text"> </div> <div show.bind="!editOnly && parentVM.editMode == 0"> <small>${label}</small> <input ref="readOnlySlider" value.two-way="value" type="text"> </div> Cytuj Link do komentarza Udostępnij na innych stronach More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.