Skocz do zawartości

I am trying to rewrite this jQuery code to Typescript.


let_Maya

Recommended Posts

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>

 

Link do komentarza
Udostępnij na innych stronach

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gość
Odpowiedz...

×   Wkleiłeś zawartość bez formatowania.   Usuń formatowanie

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Utwórz nowe...