nice-select2 icon indicating copy to clipboard operation
nice-select2 copied to clipboard

Added option to show selected items

Open zaru opened this issue 2 years ago • 0 comments

Proposal.

Add option to display items selected by multiple attributes. This option allows for flexibility in the way it looks.

For example, in CSS, it can be displayed comma-separated.

.nice-select.has-multiple {
  .multiple-options {
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  .current {
    &:before {
      content: ' , ';
    }
    &:first-of-type {
      &:before {
        content: '';
      }
    }
  }
}

zaru avatar May 09 '22 02:05 zaru