이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
setWidths
클래스: slmetric.dashboard.CustomWidget
네임스페이스: slmetric.dashboard
(제거 예정) 지표 대시보드 사용자 정의 위젯에 대한 여러 너비 지정
Metrics Dashboard 사용자 인터페이스, metricdashboard
기능, slmetric
패키지 API 및 해당 사용자 정의는 향후 릴리스에서 제거될 예정입니다. 자세한 내용은 Migrating from Metrics Dashboard to Model Maintainability Dashboard를 참조하세요.
설명
setWidths(
은 customName
, widths
)slmetric.dashboard.CustomWidget
객체가 가질 수 있는 너비를 지정합니다. 최대 4개의 서로 다른 너비를 지정할 수 있습니다. 입력 인수 widths
의 경우 하나의 값 또는 4개 값의 배열을 전달합니다. 다음과 같은 가능한 값 중에서 선택할 수 있습니다.
slmetric.dashboard.Width.ExtraSmall
— 2열 너비slmetric.dashboard.Width.Small
— 4열 너비slmetric.dashboard.Width.Medium
— 6열 너비slmetric.dashboard.Width.Large
— 8열 너비slmetric.dashboard.Width.XLarge
— 10열 너비slmetric.dashboard.Width.XXLarge
— 12열 너비
이러한 값은 화면 크기가 변경됨에 따라 사용자 정의 위젯이 가질 수 있는 다양한 크기에 해당합니다. 하나의 값을 지정하면 위젯은 화면 크기에 관계없이 항상 해당 값을 갖습니다. 4가지 다른 값을 지정하면 화면을 최대화하고 최소화함에 따라 위젯 크기가 4번 변경될 수 있습니다.
참고
메트릭 대시보드 레이아웃은 동일한 크기의 12개 열로 나뉩니다. 빈 대시보드에 새 위젯을 추가하면 대시보드는 12개의 열이 포함된 새 행을 생성합니다. 대시보드는 위젯 너비가 12열을 초과할 때까지 동일한 행에 위젯을 추가합니다. 너비가 12열을 초과하면 대시보드에서 새 행을 생성합니다. 예를 들어 너비가 slmetric.dashboard.Width.XXLarge
인 하나의 위젯이 있는 경우 해당 위젯은 행의 12개 열을 모두 사용합니다. 더 작은 위젯이 있는 경우 대시보드는 행의 위젯이 최대 너비인 12에 도달할 때까지 해당 위젯을 동일한 행에 배치합니다.
열 1 | 2열 | 3열 | 4열 | 5열 | 6열 | 7열 | 8열 | 9열 | 열 10 | 열 11 | 열 12 |
---|---|---|---|---|---|---|---|---|---|---|---|
slmetric.dashboard.Width.XXLarge | |||||||||||
slmetric.dashboard.Width.Medium | slmetric.dashboard.Width.Medium | ||||||||||
slmetric.dashboard.Width.Medium | slmetric.dashboard.Width.Small | (비어 있음) | |||||||||
slmetric.dashboard.Width.Small | (비어 있음) |