Date Components
3.4.2
• Relative Date Picker컴포넌트
UIKit
8.2.0
AccordionActionTooltipActionsPanelAlertArrowToggleAvatarAvatar StackBreadcrumbsButtonCardCheckboxClipboard IconClipboardButtonColor PickerCopy To ClipboardDefinitionListDialogDisclosureDividerDrawerDropdownMenuFile Drop ZoneFilePreviewHello Pangea DndHelpMarkHotkeyIconLabelLinkListList Item ViewLoaderMenuModalNumberInputOverlayPaginationPalettePasswordInputPinInputPlaceholderContainerPopoverPopupPortalProgressRadioRadioGroupSegmentedRadioGroupSelectSheetSkeletonSliderSpinStepperSwitchTableTable Column SetupTabsTextTextAreaTextInputToasterTocTooltipUserUserLabelVirtualizer
Date Components
3.4.2
Navigation
6.3.1
Relative Date Picker
view
size
placeholder
label
validationState
errorMessage
disabled
hasClear
readOnly
format
pin
minValue
maxValue
import {RelativeDatePicker} from '@gravity-ui/date-components';
RelativeDatePicker는 DatePicker 컴포넌트와 거의 동일하지만 상대 날짜를 사용할 수 있는 기능이 있습니다.
§DatePicker와의 차이점
RelativeDatePicker는 absolute와 relative 두 가지 모드로 작동할 수 있습니다. f(x) 버튼을 클릭하여 대화형으로 전환하거나, value 또는 defaultValue 객체에서 type 필드를 설정할 수 있습니다.
§Absolute (절대)
RelativeDatePicker의 absolute 모드에서의 동작은 일반 DatePicker와 매우 유사합니다.
§Relative (상대)
이 모드에서 RelativeDatePicker는 특별한 상대 형식으로 값을 가져오고 반환합니다.
Learn more about rules of relative formulas
§속성
| 이름 | 설명 | 타입 | 기본값 |
|---|---|---|---|
| aria-describedby | 컨트롤의 aria-describedby. 객체를 설명하는 요소(들)를 식별합니다. 속성 |