Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
feat(pick-list): adding compact mode
Browse files Browse the repository at this point in the history
  • Loading branch information
asangma committed Oct 8, 2019
1 parent 37a795c commit 3b6e7a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/calcite-pick-list/calcite-pick-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ export class CalcitePickList {
this.items = Array.from(this.el.querySelectorAll("calcite-pick-list-item"));
this.items.forEach((item) => {
const iconType = this.getIconType();
const compactString = this.compact ? "true" : "false";
item.setAttribute("icon", iconType);
item.setAttribute("compact", compactString);

if (item.hasAttribute("selected")) {
this.selectedValues.set(item.getAttribute("value"), item);
Expand Down

0 comments on commit 3b6e7a9

Please sign in to comment.