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
const obj = Object.create(null); | |
console.log(obj.__proto_ === null); |
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
if(isNaN(mobNum)){ | |
MessageToast.show("Only numbers please!"); | |
input.setValue(mobNum.substring(0,mobNum.length-1)); | |
} |
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
if(mobNum.indexOf('.')!=-1){ | |
MessageToast.show("No decimal values please!"); | |
input.setValue(mobNum.substring(0,mobNum.length-1)); | |
} |
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
<Input id="mobnput" class="sapUiSmallMarginBottom" placeholder="Enter mobile number..." | |
width="170px" value="" liveChange="onMobNumberChange" type="Number"/> |
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
onMobNumberChange: function (oEvent) { | |
var input = oEvent.getSource(), | |
mobNum = input.getValue(); | |
if(mobNum.length > 10){ | |
MessageToast.show("Upto 10 digits only!"); | |
input.setValue(oEvent.getParameters().value.substr(0,10).trim()); | |
} | |
else{ | |
input.setValue(mobNum); | |
} |
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
onMobNumberChangeRegEx: function (oEvent) { | |
var input = oEvent.getSource(); | |
var mobNum = input.getValue(); | |
mobNum = mobNum.replace(/[^\d]/g, ''); | |
input.setValue(mobNum); | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
function first(temp,callBack){ | |
setTimeout(function(){ | |
console.log(temp); | |
callBack(); | |
},500); | |
//callBack(); | |
} | |
function second(){ | |
console.log(2); | |
} |
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
if(itemNumber == 0): | |
mailSubject = itemDetails | |
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
sign_content ="<br/>"+"Thanks,"+"<br/>"+"Jakes" |
NewerOlder