Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Manage attributes in the List Item component

Hello,

Please clarify, to you want to change a color of the gridcell_1, which is a child component of current element? If so, please use JS below: preelement.find('[name=gridcell_1]').css('background', 'Yellow');/pre
instead of:pre $('[name=gridcell_1]').css('background', 'Yellow');/pre

Zhivko Zhelev
Posts: 0
Joined: Tue May 31, 2016 6:59 am

Manage attributes in the List Item component

Hi,
I have similiar situation but with IONIC app.
I have a icon on the right in the list and I want to hide it for specific items? is there a way to do that?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Manage attributes in the List Item component

Hello Zhivko,

You can control the visibility of your icons in the Ionic project with a custom CSS class "hide-icon", e.g.:
pre
.hide-icon.icon-left:before,.hide-icon.icon-right:before{
display:none;
}/pre

and add/remove that class from your component, using ng-class property: https://docs.angularjs.org/api/ng/dir...

Return to “Issues”