Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Create new UI5 control for autoComplete

$
0
0

Hi,

 

I found this example and I need to use something with similar logic but I need to create New Ui5 control

which encapsulate all the logic inside

 

 

JS Bin - Collaborative JavaScript Debugging

 

I need to add the following functionality to the new control plus what is defined in the JS bin,I wasnt able to sucessed with it since we have to provide additional logic

1.Add value functionality like following:

value: {                path: "/path",                mode: sap.ui.model.BindingMode.OneWay,                formatter: function(path) {                        var event = this;                        doc.getProject().then(function(oProject) {
....                          }            },
2. Add the suggest and change method
suggest: function(oEvent) {                this.destroyItems();                var sValue = oEvent.getParameter("suggestValue");                for (var i = 0; i < aData.length; i++) {
...                    }                }            },            change: $.proxy(oController.onChange, oController),
3. add the following
oAuto1.setFilterFunction(function(sValue, oItem) {            var ignVal = sVae.trCase();            return (oItem.getText() !== -1) ||         .....        });

Is this possible in UI5 ?

 

Regards,

Joerg


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>