Page 3 of 3

Manage attributes in the List Item component

Posted: Thu Sep 01, 2016 10:43 am
by Serhii Kulibaba

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


Manage attributes in the List Item component

Posted: Wed Nov 23, 2016 4:46 pm
by Zhivko Zhelev

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?


Manage attributes in the List Item component

Posted: Thu Nov 24, 2016 5:30 pm
by Serhii Kulibaba

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...