list selected item

Hi,

I have 2 questions about selected list list items.

  1. I need to overwrite list item when it is selected.
    Now, when i select a list item, it appears a border or frame to mark that item.
    i need to remove that frame and set the hole item with the background-color i want.

  2. Very often, list items has images that fires actions. When i select that item (having that selected property od the list to true), those actions are not fired.

Is there a way to fire both, the selected click event and the actions tha the list have in that list item?

Thanks and regards!

Hi,

(1) You can change selection color by CSS means.

(2) With selection and action images ythere can be two patterns. You can put selection and icon clicks separately:

onClick:{
  "fa-cog":function(e, id){
    webix.message("cog "+id);
    return false;
  }
}

or trigger these actions after selection:

on:{
   onAfterSelect:function(id){
     webix.message("action "+id);
   }
}

Please, check: http://webix.com/snippet/f8057b96

Thank you very very much!