on 05-05-2016 7:10 AM
Hi all,
I have a object header sap.m.object header , how can i add a css class to this control based on the value of a attribute or number field
for example
var ticket_details = new sap.m.ObjectHeader('ticket_details', {
title:"{Ticket}",
intro:"{Type}",
attributes : [
new sap.m.ObjectAttribute({
title:"",
text : "{value}",
})
],
});
how can i change the background color or any css property to object header based on the attribute text value . so if the value is greater than 90 the object header background should changed to red like wise..
Thanks
Prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi prasad,
You can use custom formatter function like this
JS Bin - Collaborative JavaScript Debugging
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.