on 11-12-2015 3:57 PM
HI,
Ive this example code and I need to add to the control a title and label ,But this should be within the control
I think by adding aggregation to it and not by add it to the page/grid etc .
when you call to the constructor of this control you get the title and AC label without the need to add them separate.
http://jsbin.com/cejedoyije/edit?js,output
Thanks,
Joerg
I Agree with Indrajith.
Few changes are added here ( eg Title ). JS Bin - Collaborative JavaScript Debugging
Regards,
KA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joerg,
You can add a property to your extended control.
Something like this
JS Bin - Collaborative JavaScript Debugging
Is this what you are looking at? If not please let us know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this: add a placeholder property:
var oAuto1 = new myControl("TextField-1", {
maxPopupItems: 20,
ariaDescribedBy: "MyDesc",
ariaLabelledBy: "MyLbl",
placeholder: "title", // add this line
items: { path: '/aData', template: new sap.ui.core.ListItem({ text: '{name}', additionalText : '{userid}', key : '{userid}' }) } });
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.