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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -