Skip to content

Instantly share code, notes, and snippets.

@veeranjik
Created December 6, 2018 18:23
Show Gist options
  • Save veeranjik/03f2afc560d41be113915323b46c490d to your computer and use it in GitHub Desktop.
Save veeranjik/03f2afc560d41be113915323b46c490d to your computer and use it in GitHub Desktop.
({
loadOptions: function (component, event, helper) {
var opts = [
{ value: "de", label: "German" },
{ value: "es", label: "Spanish" },
{ value: "ta", label: "Tamil" },
{ value: "en", label: "English" }
];
component.set("v.options", opts);
},
handleSelect:function(component,event,helper){
var selected = event.getSource().get("v.value");
},
keyPressController: function (component, event, helper) {
var prpAct2=component.find("prptext3");
var prpActVal2 = prpAct2.get("v.value");
prpAct2.set("v.errors", null);
var searchKey = component.get("v.searchKey");
var Language = component.get("v.selectedValue");
helper.openListbox(component, searchKey);
helper.displayOptionsLocation(component, searchKey,Language);
},
clear: function (component, event, helper) {
helper.clearComponentConfig(component);
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment