Created
March 1, 2017 21:42
-
-
Save bjoerntx/9f2051661ed619b0324d1f3b193216ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// when entering the SubTextPart, check for the ID | |
// if 1 then set read and select | |
TXTextControl.addEventListener("subTextPartEntered", function (e) { | |
if (e.id == '1') { | |
TXTextControl.editMode = TXTextControl.EditMode.ReadAndSelect; | |
$('#tbSubTextPartName').val(e.name); | |
} | |
}); | |
// set the edit mode to edit mode again | |
TXTextControl.addEventListener("subTextPartLeft", function (e) { | |
TXTextControl.editMode = TXTextControl.EditMode.Edit; | |
$('#tbSubTextPartName').val(''); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment