html5 - Removing list effect when tapping on ons-button in the right of ons-list-item -


i have ons-list follows:

<ons-list-item modifier="tappable" class="list-item" ng-repeat="item in items" ng-click="onitemselect(item);">      <ons-row>           <ons-col width="105px">               <img ng-src="{{item.thumb}}"></img>           </ons-col>           <ons-col>           <div class="item-title">               {{ item.name }}           </div>           </ons-col>           <ons-col>               <ons-button ng-click="onclick();">add</ons-button>           </ons-col>      </ons-row>  </ons-list-item> 

there effect after tapping on list , same thing goes when tapping on add button.

i wonder there way remove effect when tapping on add button on right-side of list?

to remove effect when tapping on "add" button should use modifier on button this:

<ons-button modifier="noeffect" ng-click="onclick();">add</ons-button> 

and apply custom css button:

.button--noeffect:active{/*keep background color same on tap*/     opacity:1; } 

check codepen.

if want remove tap effect list items , want "add" button work on tap delete only: modifier="tappable" list items.

onsenui has standard modifiers can applied buttons , list items, can create own above.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -