solid-multiselect icon indicating copy to clipboard operation
solid-multiselect copied to clipboard

Custom Close Icon for multiselect

Open dangarfield opened this issue 2 years ago • 0 comments

Hi,

Would it be possible to add customCloseIcon when you render multi selects?

Eg, instead of:

<Show when={( singleSelect || showArrow )}>
    <img class="icon_cancel icon_down_dir" src={DownArrow} />
</Show>

Do something like:

<Show when={( singleSelect || showArrow )}>
    <Show when={!props.customCloseIcon}
        fallback={() => <i class="custom-close">{props.customCloseIcon}</i>}>
            <img class="icon_cancel icon_down_dir" src={closeIconType()} />
    </Show>
</Show>

It's not strictly a close Icon, more of a down icon now. But I think you get what I mean.

Thanks

dangarfield avatar Nov 12 '23 17:11 dangarfield