픽리스트
픽리스트 (PickList)
PickList는 두 개의 목록 사이에서 항목을 옮기고 순서를 재배열할 때 사용하는 컴포넌트예요. source와 target 속성으로 제어하는 방식이라 소스 목록과 대상 목록을 직접 관리할 수 있고, 드래그 앤 드롭 기능은 @angular/cdk 패키지에 의존해요. 이 문서에서는 기본 사용법부터 필터, 항목 템플릿, 스크린 리더와 키보드 지원 같은 접근성, 그리고 테마 설정까지 폭넓게 다루고 있어요.
출처: 문서
본문
접근성
스크린 리더 소스 리스트박스와 타깃 리스트박스를 설명하는 값은 ariaLabelledBy 또는 ariaLabel 프로퍼티로 제공할 수 있어요. 리스트 요소는 listbox 역할을 가지며 aria-multiselectable 속성이 함께 있어요. 각 리스트 항목은 option 역할을 가지며 aria-selected와 aria-disabled를 속성으로 가져요. 컨트롤 버튼은 button 요소로서, 기본적으로 locale API의 aria.moveTop, aria.moveUp, aria.moveDown, aria.moveBottom, aria.moveTo, aria.moveAllTo, aria.moveFrom, aria.moveAllFrom 프로퍼티를 참조하는 aria-label을 가져요. 대신 moveTopButtonProps, moveUpButtonProps, moveDownButtonProps, moveToButtonProps, moveAllToButtonProps, moveFromButtonProps, moveFromButtonProps, moveAllFromButtonProps를 사용해 기본 aria-label 속성을 재정의하는 식으로 버튼을 커스터마이즈할 수도 있어요. PickList 키보드 지원 키 동작 tab 첫 번째로 선택된 옵션으로 포커스를 이동해요. 선택된 옵션이 없으면 첫 번째 옵션이 포커스를 받아요. up arrow 이전 옵션으로 포커스를 이동해요. down arrow 다음 옵션으로 포커스를 이동해요. enter 포커스된 옵션의 선택 상태를 토글해요. space 포커스된 옵션의 선택 상태를 토글해요. home 첫 번째 옵션으로 포커스를 이동해요. end 마지막 옵션으로 포커스를 이동해요. shift + down arrow 다음 옵션으로 포커스를 이동하고 선택 상태를 토글해요. shift + up arrow 이전 옵션으로 포커스를 이동하고 선택 상태를 토글해요. shift + space 가장 최근에 선택한 옵션과 포커스된 옵션 사이의 항목들을 선택해요. control + shift + home 포커스된 옵션과 위쪽으로 첫 번째 옵션까지의 모든 옵션을 선택해요. control + shift + end 포커스된 옵션과 아래쪽으로 첫 번째 옵션까지의 모든 옵션을 선택해요. control + a 모든 옵션을 선택해요. 버튼 키보드 지원 키 동작 enter 버튼 동작을 실행해요. space 버튼 동작을 실행해요.
기본
PickList는 source와 target 프로퍼티를 가진 제어 입력으로 사용해요. 리스트 항목의 내용은 리스트에 있는 객체를 파라미터로 받는 item 템플릿으로 정의해야 해요. 드래그 & 드롭 기능은 @angular/cdk 패키지에 의존해요.
import { Component, OnInit, inject, signal } from '@angular/core';
import { PickListModule } from 'primeng/picklist';
import { ProductService } from '@/service/productservice';
import { Product } from '@/domain/product';
@Component({
template: `
<div class="card">
<p-picklist [source]="sourceProducts()" [target]="targetProducts()" [dragdrop]="true" [responsive]="true" breakpoint="1400px">
<ng-template let-item #item>
{{ item.name }}
</ng-template>
</p-picklist>
</div>
`,
standalone: true,
imports: [PickListModule],
providers: [ProductService]
})
export class PicklistBasicDemo implements OnInit {
private productService = inject(ProductService);
sourceProducts = signal<Product[]>([]);
targetProducts = signal<Product[]>([]);
ngOnInit() {
this.carService.getProductsSmall().then((products) => {
this.sourceProducts.set(products);
});
}
}
필터
필터 값은 filterBy 프로퍼티로 설정된 객체의 프로퍼티를 기준으로 검사돼요.
import { Component, OnInit, inject, signal } from '@angular/core';
import { PickListModule } from 'primeng/picklist';
import { ProductService } from '@/service/productservice';
import { Product } from '@/domain/product';
@Component({
template: `
<div class="card">
<p-picklist
[source]="sourceProducts()"
[target]="targetProducts()"
[dragdrop]="true"
[responsive]="true"
filterBy="name"
sourceFilterPlaceholder="Search by name"
targetFilterPlaceholder="Search by name"
breakpoint="1400px"
scrollHeight="20rem"
>
<ng-template let-option let-selected="selected" #option>
<div class="flex flex-wrap p-1 items-center gap-4 w-full">
<img class="w-12 shrink-0 rounded" src="https://primefaces.org/cdn/primeng/images/demo/product/{{ option.image }}" [alt]="option.name" />
<div class="flex-1 flex flex-col">
<span class="font-medium text-sm">{{ option.name }}</span>
<span
[ngClass]="{
'text-surface-500': !selected,
'dark:text-surface-400': !selected,
'text-inherit': selected
}"
>{{ option.category }}</span
>
</div>
<span class="font-bold sm:ml-8">{{ '$' + option.price }}</span>
</div>
</ng-template>
</p-picklist>
</div>
`,
standalone: true,
imports: [PickListModule],
providers: [ProductService]
})
export class PicklistFilterDemo implements OnInit {
private productService = inject(ProductService);
sourceProducts = signal<Product[]>([]);
targetProducts = signal<Product[]>([]);
ngOnInit() {
this.carService.getProductsSmall().then((products) => {
this.sourceProducts.set(products);
});
}
}
템플릿
커스텀 콘텐츠를 지원하려면 항목 인스턴스를 파라미터로 받는 item 템플릿을 정의하세요. 추가로 sourceheader와 targetheader 템플릿도 제공되니 더 세부적인 커스터마이즈가 가능해요.
import { Component, OnInit, inject, signal } from '@angular/core';
import { PickListModule } from 'primeng/picklist';
import { ProductService } from '@/service/productservice';
import { Product } from '@/domain/product';
@Component({
template: `
<div class="card">
<p-picklist [source]="sourceProducts()" [target]="targetProducts()" [dragdrop]="true" [responsive]="true" sourceFilterPlaceholder="Search by name" targetFilterPlaceholder="Search by name" breakpoint="1400px" scrollHeight="20rem">
<ng-template let-option let-selected="selected" #item>
<div class="flex flex-wrap p-1 items-center gap-4 w-full">
<img class="w-12 shrink-0 rounded" src="https://primefaces.org/cdn/primeng/images/demo/product/{{ option.image }}" [alt]="option.name" />
<div class="flex-1 flex flex-col">
<span class="font-medium text-sm">{{ option.name }}</span>
<span
[ngClass]="{
'text-surface-500': !selected,
'dark:text-surface-400': !selected,
'text-inherit': selected
}"
>{{ option.category }}</span
>
</div>
<span class="font-bold sm:ml-8">{{ '$' + option.price }}</span>
</div>
</ng-template>
</p-picklist>
</div>
`,
standalone: true,
imports: [PickListModule],
providers: [ProductService]
})
export class PicklistTemplateDemo implements OnInit {
private productService = inject(ProductService);
sourceProducts = signal<Product[]>([]);
targetProducts = signal<Product[]>([]);
ngOnInit() {
this.carService.getProductsSmall().then((products) => {
this.sourceProducts.set(products);
});
}
}
templates-doc
import { Component } from '@angular/core';
@Component({
template: `
<div class="doc-tablewrapper">
<table class="doc-table">
<thead>
<tr>
<th>Name</th>
<th>Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td>item</td>
<td>
$implicit: Data of the item<br />
index: Index of the item
</td>
</tr>
<tr>
<td>sourceHeader</td>
<td>-</td>
</tr>
<tr>
<td>targetHeader</td>
<td>-</td>
</tr>
<tr>
<td>sourceFilter</td>
<td>
options.filter: Callback to filter data by the value param<br />
options.reset: Resets the filters.
</td>
</tr>
<tr>
<td>targetFilter</td>
<td>
options.filter: Callback to filter data by the value param<br />
options.reset: Resets the filters
</td>
</tr>
<tr>
<td>emptymessagesource</td>
<td>-</td>
</tr>
<tr>
<td>emptyfiltermessagesource</td>
<td>-</td>
</tr>
<tr>
<td>emptymessagetarget</td>
<td>-</td>
</tr>
<tr>
<td>emptyfiltermessagetarget</td>
<td>-</td>
</tr>
<tr>
<td>moveupicon</td>
<td>-</td>
</tr>
<tr>
<td>movetopicon</td>
<td>-</td>
</tr>
<tr>
<td>movedownicon</td>
<td>-</td>
</tr>
<tr>
<td>movebottomicon</td>
<td>-</td>
</tr>
<tr>
<td>movetotargeticon</td>
<td>$implicit: viewChanged</td>
</tr>
<tr>
<td>movealltotargeticon</td>
<td>$implicit: viewChanged</td>
</tr>
<tr>
<td>movetosourceicon</td>
<td>$implicit: viewChanged</td>
</tr>
<tr>
<td>movealltosourceicon</td>
<td>$implicit: viewChanged</td>
</tr>
<tr>
<td>targetfiltericon</td>
<td>-</td>
</tr>
<tr>
<td>sourcefiltericon</td>
<td>-</td>
</tr>
</tbody>
</table>
</div>
`,
standalone: true,
imports: []
})
export class PicklistTemplatesDemo {}
Pick List
PickList는 서로 다른 리스트 사이에서 항목을 재배치할 때 사용해요.
프롭스
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| dt | InputSignal | undefined | 컴포넌트의 스코프 디자인 토큰을 정의해요. |
| unstyled | InputSignal | undefined | 컴포넌트를 스타일 없이 렌더링할지 여부를 나타내요. |
| pt | InputSignal | undefined | 컴포넌트 내부의 DOM 요소에 속성을 전달할 때 사용해요. |
| ptOptions | InputSignal | undefined | 컴포넌트의 passthrough(pt) 옵션을 구성할 때 사용해요. |
| source | ModelSignal<any[]> | ... | 소스 리스트의 객체 배열이에요. |
| target | ModelSignal<any[]> | ... | 타깃 리스트의 객체 배열이에요. |
| dataKey | string | - | 옵션을 고유하게 식별하는 필드의 이름이에요. |
| sourceHeader | string | - | 소스 리스트 캡션의 텍스트예요. |
| tabindex | number | 0 | 탭 순서에서의 요소 인덱스예요. |
| rightButtonAriaLabel | string | - | 접근성을 위해 오른쪽으로 이동 버튼의 라벨이 되는 문자열을 정의해요. |
| leftButtonAriaLabel | string | - | 접근성을 위해 왼쪽으로 이동 버튼의 라벨이 되는 문자열을 정의해요. |
| allRightButtonAriaLabel | string | - | 접근성을 위해 모두 오른쪽으로 이동 버튼의 라벨이 되는 문자열을 정의해요. |
| allLeftButtonAriaLabel | string | - | 접근성을 위해 모두 왼쪽으로 이동 버튼의 라벨이 되는 문자열을 정의해요. |
| upButtonAriaLabel | string | - | 접근성을 위해 위로 이동 버튼의 라벨이 되는 문자열을 정의해요. |
| downButtonAriaLabel | string | - | 접근성을 위해 아래로 이동 버튼의 라벨이 되는 문자열을 정의해요. |
| topButtonAriaLabel | string | - | 접근성을 위해 맨 위로 이동 버튼의 라벨이 되는 문자열을 정의해요. |
| bottomButtonAriaLabel | string | - | 접근성을 위해 맨 아래로 이동 버튼의 라벨이 되는 문자열을 정의해요. |
| sourceAriaLabel | string | - | 소스 리스트의 라벨이 되는 문자열을 정의해요. |
| targetAriaLabel | string | - | 타깃 리스트의 라벨이 되는 문자열을 정의해요. |
| targetHeader | string | - | 타깃 리스트 캡션의 텍스트예요. |
| responsive | boolean | false | 활성화하면 orderlist가 화면 크기에 따라 컨트롤을 조정해요. |
| filterBy | string | - | 지정하면 keyup 때 항목을 필터링하는 입력 필드를 표시하고 어떤 필드를 검색할지 결정해요 (쉼표로 여러 필드를 지정할 수 있어요). |
| filterLocale | string | - | 필터링에 사용할 로케일이에요. 기본 로케일은 호스트 환경의 현재 로케일이에요. |
| trackBy | Function | ... | ngForTrackBy에 위임해 DOM 연산을 최적화하는 함수예요. 기본 알고리즘은 객체 동일성을 검사해요. 리스트마다 다른 알고리즘이 필요하다면 sourceTrackBy나 targetTrackBy를 사용하세요. |
| sourceTrackBy | Function | - | 소스 리스트에서 ngForTrackBy에 위임해 DOM 연산을 최적화하는 함수예요. 기본 알고리즘은 객체 동일성을 검사해요. |
| targetTrackBy | Function | - | 타깃 리스트에서 ngForTrackBy에 위임해 DOM 연산을 최적화하는 함수예요. 기본 알고리즘은 객체 동일성을 검사해요. |
| showSourceFilter | boolean | true | filterBy가 활성화됐을 때 소스 리스트의 필터 입력을 표시할지 여부예요. |
| showTargetFilter | boolean | true | filterBy가 활성화됐을 때 타깃 리스트의 필터 입력을 표시할지 여부예요. |
| metaKeySelection | boolean | false | 여러 항목을 선택하는 방식을 정의해요. true면 항목을 선택하거나 해제할 때 metaKey를 눌러야 하고, false면 각 항목을 개별적으로 토글해 선택할 수 있어요. 터치 지원 기기에서는 metaKeySelection이 자동으로 꺼져요. |
| dragdrop | boolean | false | 드래그앤드롭 기반 재정렬을 활성화할지 여부예요. |
| style | { [klass: string]: any } | - | 컴포넌트의 인라인 스타일이에요. |
| styleClass | string | - | 컴포넌트의 스타일 클래스예요. |
| sourceStyle | any | - | 소스 리스트 요소의 인라인 스타일이에요. |
| targetStyle | any | - | 타깃 리스트 요소의 인라인 스타일이에요. |
| showSourceControls | boolean | true | 소스 리스트의 버튼을 표시할지 여부예요. |
| showTargetControls | boolean | true | 타깃 리스트의 버튼을 표시할지 여부예요. |
| sourceFilterPlaceholder | string | - | 소스 필터 입력에 표시되는 플레이스홀더 텍스트예요. |
| targetFilterPlaceholder | string | - | 타깃 필터 입력에 표시되는 플레이스홀더 텍스트예요. |
| disabled | boolean | false | 지정하면 컴포넌트가 비활성화돼요. |
| sourceOptionDisabled | string | ((item: any) => boolean) | - | 타깃 옵션의 비활성화 필드 이름 또는 비활성화 상태를 판단하는 함수예요. |
| targetOptionDisabled | string | ((item: any) => boolean) | - | 타깃 옵션의 비활성화 필드 이름 또는 비활성화 상태를 판단하는 함수예요. |
| ariaSourceFilterLabel | string | - | 소스 리스트 필터 입력의 라벨이 되는 문자열을 정의해요. |
| ariaTargetFilterLabel | string | - | 타깃 리스트 필터 입력의 라벨이 되는 문자열을 정의해요. |
| filterMatchMode | string | contains | 항목을 필터링하는 방식을 정의해요. |
| stripedRows | boolean | false | 행을 교대로 다른 색으로 표시할지 여부예요. |
| keepSelection | boolean | false | 전송 리스트에서 선택 상태를 유지해요. |
| scrollHeight | string | 14rem | 뷰포트의 높이예요. 리스트 높이가 이 값을 초과하면 스크롤바가 표시돼요. |
| autoOptionFocus | boolean | true | 첫 번째로 보이는 요소나 선택된 요소에 포커스를 둘지 여부예요. |
| buttonProps | ButtonProps | ... | ButtonProps의 모든 프로퍼티를 Button 컴포넌트에 전달할 때 사용해요. |
| moveUpButtonProps | ButtonProps | - | ButtonProps의 모든 프로퍼티를 컴포넌트 내부의 위로 이동 버튼에 전달할 때 사용해요. |
| moveTopButtonProps | ButtonProps | - | ButtonProps의 모든 프로퍼티를 컴포넌트 내부의 맨 위로 이동 버튼에 전달할 때 사용해요. |
| moveDownButtonProps | ButtonProps | - | ButtonProps의 모든 프로퍼티를 컴포넌트 내부의 아래로 이동 버튼에 전달할 때 사용해요. |
| moveBottomButtonProps | ButtonProps | - | ButtonProps의 모든 프로퍼티를 컴포넌트 내부의 맨 아래로 이동 버튼에 전달할 때 사용해요. |
| moveToTargetProps | ButtonProps | - | ButtonProps의 모든 프로퍼티를 컴포넌트 내부의 타깃으로 이동 버튼에 전달할 때 사용해요. |
| moveAllToTargetProps | ButtonProps | - | ButtonProps의 모든 프로퍼티를 컴포넌트 내부의 모두 타깃으로 이동 버튼에 전달할 때 사용해요. |
| moveToSourceProps | ButtonProps | - | ButtonProps의 모든 프로퍼티를 컴포넌트 내부의 소스로 이동 버튼에 전달할 때 사용해요. |
| moveAllToSourceProps | ButtonProps | - | ButtonProps의 모든 프로퍼티를 컴포넌트 내부의 모두 소스로 이동 버튼에 전달할 때 사용해요. |
| breakpoint | string | - | 컴포넌트가 동작을 변경해야 하는 화면 너비를 나타내요. |
이벤트
| 이름 | 파라미터 | 설명 |
|---|---|---|
| onMoveToSource | event: PickListMoveToSourceEvent | 항목이 타깃에서 소스로 이동될 때 호출되는 콜백이에요. |
| onMoveAllToSource | event: PickListMoveAllToSourceEvent | 모든 항목이 타깃에서 소스로 이동될 때 호출되는 콜백이에요. |
| onMoveAllToTarget | event: PickListMoveAllToTargetEvent | 모든 항목이 소스에서 타깃으로 이동될 때 호출되는 콜백이에요. |
| onMoveToTarget | event: PickListMoveToTargetEvent | 항목이 소스에서 타깃으로 이동될 때 호출되는 콜백이에요. |
| onSourceReorder | event: PickListSourceReorderEvent | 소스 리스트 내에서 항목이 재정렬될 때 호출되는 콜백이에요. |
| onTargetReorder | event: PickListTargetReorderEvent | 타깃 리스트 내에서 항목이 재정렬될 때 호출되는 콜백이에요. |
| onSourceSelect | event: PickListSourceSelectEvent | 소스 리스트 내에서 항목이 선택될 때 호출되는 콜백이에요. |
| onTargetSelect | event: PickListTargetSelectEvent | 타깃 리스트 내에서 항목이 선택될 때 호출되는 콜백이에요. |
| onSourceFilter | event: PickListSourceFilterEvent | 소스 리스트가 필터링될 때 호출되는 콜백이에요. |
| onTargetFilter | event: PickListTargetFilterEvent | 타깃 리스트가 필터링될 때 호출되는 콜백이에요. |
| onFocus | event: Event | 리스트가 포커스를 받을 때 호출되는 콜백이에요. |
| onBlur | event: Event | 리스트가 포커스를 잃을 때 호출되는 콜백이에요. |
템플릿
| 이름 | 타입 | 설명 |
|---|---|---|
| item | TemplateRef | 커스텀 항목 템플릿이에요. |
| sourceheader | TemplateRef | 커스텀 소스 헤더 템플릿이에요. |
| targetheader | TemplateRef | 커스텀 타깃 헤더 템플릿이에요. |
| sourcefilter | TemplateRef | 커스텀 소스 필터 템플릿이에요. |
| targetfilter | TemplateRef | 커스텀 타깃 필터 템플릿이에요. |
| emptymessagesource | TemplateRef | 소스가 비어 있을 때의 커스텀 빈 메시지 템플릿이에요. |
| emptyfiltermessagesource | TemplateRef | 소스가 비어 있을 때의 커스텀 빈 필터 메시지 템플릿이에요. |
| emptymessagetarget | TemplateRef | 타깃이 비어 있을 때의 커스텀 빈 메시지 템플릿이에요. |
| emptyfiltermessagetarget | TemplateRef | 타깃이 비어 있을 때의 커스텀 빈 필터 메시지 템플릿이에요. |
| moveupicon | TemplateRef | 커스텀 위로 이동 아이콘 템플릿이에요. |
| movetopicon | TemplateRef | 커스텀 맨 위로 이동 아이콘 템플릿이에요. |
| movedownicon | TemplateRef | 커스텀 아래로 이동 아이콘 템플릿이에요. |
| movebottomicon | TemplateRef | 커스텀 맨 아래로 이동 아이콘 템플릿이에요. |
| movetotargeticon | TemplateRef | 커스텀 타깃으로 이동 아이콘 템플릿이에요. |
| movealltotargeticon | TemplateRef | 커스텀 모두 타깃으로 이동 아이콘 템플릿이에요. |
| movetosourceicon | TemplateRef | 커스텀 소스로 이동 아이콘 템플릿이에요. |
| movealltosourceicon | TemplateRef | 커스텀 모두 소스로 이동 아이콘 템플릿이에요. |
| targetfiltericon | TemplateRef | 커스텀 타깃 필터 아이콘 템플릿이에요. |
| sourcefiltericon | TemplateRef | 커스텀 소스 필터 아이콘 템플릿이에요. |
패스 스루 옵션
| 이름 | 타입 | 설명 |
|---|---|---|
| root | PassThroughOption<HTMLDivElement, I> | 루트의 DOM 요소에 속성을 전달할 때 사용해요. |
| sourceControls | PassThroughOption<HTMLDivElement, I> | 소스 컨트롤의 DOM 요소에 속성을 전달할 때 사용해요. |
| sourceListContainer | PassThroughOption<HTMLDivElement, I> | 소스 리스트 컨테이너의 DOM 요소에 속성을 전달할 때 사용해요. |
| transferControls | PassThroughOption<HTMLDivElement, I> | 전송 컨트롤의 DOM 요소에 속성을 전달할 때 사용해요. |
| targetListContainer | PassThroughOption<HTMLDivElement, I> | 타깃 리스트 컨테이너의 DOM 요소에 속성을 전달할 때 사용해요. |
| targetControls | PassThroughOption<HTMLDivElement, I> | 타깃 컨트롤의 DOM 요소에 속성을 전달할 때 사용해요. |
| pcSourceMoveUpButton | ButtonPassThrough | 소스의 위로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcSourceMoveTopButton | ButtonPassThrough | 소스의 맨 위로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcSourceMoveDownButton | ButtonPassThrough | 소스의 아래로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcSourceMoveBottomButton | ButtonPassThrough | 소스의 맨 아래로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcMoveToTargetButton | ButtonPassThrough | 타깃으로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcMoveAllToTargetButton | ButtonPassThrough | 모두 타깃으로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcMoveToSourceButton | ButtonPassThrough | 소스로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcMoveAllToSourceButton | ButtonPassThrough | 모두 소스로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcTargetMoveUpButton | ButtonPassThrough | 타깃의 위로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcTargetMoveTopButton | ButtonPassThrough | 타깃의 맨 위로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcTargetMoveDownButton | ButtonPassThrough | 타깃의 아래로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcTargetMoveBottomButton | ButtonPassThrough | 타깃의 맨 아래로 이동 Button 컴포넌트에 속성을 전달할 때 사용해요. |
| pcListbox | ListBoxPassThrough | Listbox 컴포넌트에 속성을 전달할 때 사용해요. |
테밍
CSS 클래스
| 클래스 | 설명 |
|---|---|
| p-picklist | 루트 요소의 클래스 이름이에요. |
| p-picklist-source-controls | 소스 컨트롤 요소의 클래스 이름이에요. |
| p-picklist-source-list-container | 소스 리스트 컨테이너 요소의 클래스 이름이에요. |
| p-picklist-transfer-controls | 전송 컨트롤 요소의 클래스 이름이에요. |
| p-picklist-target-list-container | 타깃 리스트 컨테이너 요소의 클래스 이름이에요. |
| p-picklist-target-controls | 타깃 컨트롤 요소의 클래스 이름이에요. |
디자인 토큰
| 토큰 | CSS 변수 | 설명 |
|---|---|---|
| picklist.gap | --p-picklist-gap | 루트의 간격이에요. |
| picklist.controls.gap | --p-picklist-controls-gap | 컨트롤의 간격이에요. |
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.