material icon indicating copy to clipboard operation
material copied to clipboard

Usage of md-chip-remove is incomplete

Open HascourAdrien opened this issue 10 years ago • 2 comments

Hello,

on your page : https://material.angularjs.org/latest/api/directive/mdChipRemove

The doc is fine : <md-chip-remove> Designates an element to be used as the delete button for a chip. This element is passed as a child of the md-chips element.

but the USAGE is't complete and doesn't show the <md-chip-remove> you just talked about

the usage you give is :

 <md-chips>
        <button md-chip-remove>DEL</button>
    </md-chips>

with this, you just end with a ugly button over your chip, clearly not replacing the default one

the complete usage is :

  <md-chips>
        <button class="md-chip-remove" md-chip-remove>
            <md-icon md-svg-icon="md-close"></md-icon>
         </button>
    </md-chips>

HascourAdrien avatar Jun 23 '16 16:06 HascourAdrien

Wait a second,

I'm wrong somehow. I found the working solution of Daleknauss here : https://github.com/angular/material/issues/3190

I think you should update the usage with some of his code because the actual official usage display a close button over the chip without explaining how to replace the default one by the new one.

HascourAdrien avatar Jun 23 '16 16:06 HascourAdrien

Thanks, solved

HascourAdrien avatar Jul 13 '16 12:07 HascourAdrien