diff --git a/build/index.js b/build/index.js index 564bef03..606fdf50 100644 --- a/build/index.js +++ b/build/index.js @@ -38,6 +38,7 @@ Metalsmith(cwd) moment, localeMap: { 'en': 'English', + 'ko': '한국어', }, home(current) { const locale = current.locale || this.defaultLocale; @@ -110,7 +111,7 @@ Metalsmith(cwd) }) .use(locales({ defaultLocale: 'en', - locales: ['en'] + locales: ['en', 'ko'] })) .use(order()) .use(categories()) diff --git a/content/docs/ko/elements/action-bar/action-bar.md b/content/docs/ko/elements/action-bar/action-bar.md new file mode 100644 index 00000000..891d1ec6 --- /dev/null +++ b/content/docs/ko/elements/action-bar/action-bar.md @@ -0,0 +1,50 @@ +--- +title: 액션바 (ActionBar) +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.actionbar +contributors: [rigor789, eddyverbruggen] +--- + +액션바 컴포넌트는 안드로이드 액션바와 iOS NavigationBar의 네이티브-스크립트 추상화 입니다. + +--- + +#### 제목 사용 + +```html + +``` + +#### 커스텀 제목 view + +```html + + + + + +``` + +#### 안드로이드에서 앱 아이콘 설정 + +```html + +``` + +#### 가장자리 경계(border) 없애기 +iOS와 안드로이드에서 작은 보더가 액션바 바닥에 그려집니다. +추가로 iOS에서 액션바의 배경색은 iOS가 적용하는 필터때문에 지정한 값과 약간 달라집니다. +이 필터와 보더를 제거하려면 `flat` 을 `true` 로 설정하세요 + +```html + +``` + +## Props + +| 이름 | 타입 | 설명 | +|------|------|-------------| +| `title` | `String` | 액션바에 나타나는 제목. +| `android.icon` | `String` | 안드로이드에서 보여지는 아이콘. +| `android.iconVisibility` | `String` | 아이콘이 보여질지 지정. +| `flat` | `boolean` | 보더와 iOS 컬러 필터를 제거. 기본값은 `false`. diff --git a/content/docs/ko/elements/action-bar/action-item.md b/content/docs/ko/elements/action-bar/action-item.md new file mode 100644 index 00000000..0cb22b9c --- /dev/null +++ b/content/docs/ko/elements/action-bar/action-item.md @@ -0,0 +1,56 @@ +--- +title: 액션아이템 (ActionItem) +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.actionitem +contributors: [rigor789] +--- + +ActionItem 컴포넌트는 액션바에 추가적인 액션 버턴을 추가하는데 쓰임 + +--- + +```html + + + + +``` + +#### 액션 아이템의 조건부 표시 + +ActionItems 은 `v-show` 디렉티브를 이용하여 조건부로 표시할 수 있습니다. + +```html + + + + + +``` + +## Props + +| 이름 | 타입 | 설명 | +|------|------|------------| +| `ios.systemIcon` | `String` | iOS용 아이콘. +| `android.systemIcon` | `String` | 안드로이드용 아이콘. +| `ios.position` | `String` | iOS용 위치 설정.
가능한 값:
- `left` (기본값): 아이템을 액션바의 왼쪽에 위치.
- `right`: 아이템을 액션바의 오른쪽에 위치. +| `android.position` | `String` | 안드로이드용 위치설정.
가능한 값:
- `actionBar` (기본값): 아이템을 액션바 내에 위치.
- `popup`: 아이템을 옵션 메뉴에 위치. 아이템은 텍스트로 렌더링됨. .
- `actionBarIfRoom`: 공간이 있을 경우 아이템을 액션바 내에 위치. 아니면 옵션 메뉴에 둠. + +## 이벤트 + +| 이름 | 설명 | +|------|-------------| +| `tap`| 액션 아이템이 탭(tap)되었을때 호출(Emit) diff --git a/content/docs/ko/elements/action-bar/navigation-button.md b/content/docs/ko/elements/action-bar/navigation-button.md new file mode 100644 index 00000000..fb649dca --- /dev/null +++ b/content/docs/ko/elements/action-bar/navigation-button.md @@ -0,0 +1,30 @@ +--- +title: 네비게이션 버튼 (NavigationButton) +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.navigationbutton +contributors: [rigor789] +--- + +NavigationButton 컴포넌트는 안드로이드 네비게이션 버튼과 iOS 백버튼(back button)의 네이티브-스크립트 추상화입니다. + +--- + +```html + + + +``` + +## Props + +| 이름 | 타입 | 설명 | +|------|------|-------------| +| `text` | `String` | 텍스트를 iOS 에서 보여주도록 설정. +| `android.systemIcon` | `String` | 해당 아이콘이 안드로이드에서 보입니다. + +*안드로이드의 아이콘 리스트는 다음 페이지에서 찾을 수 있습니다. . 아이콘은 `ic_` 접두어와 함께 시작하는 것들입니다.* + +## Events + +| 이름 | 설명 | +|------|-------------| +| `tap`| 네비게이션 버튼을 탭(tab) 했을때 발생(Emit). diff --git a/content/docs/ko/elements/components/activity-indicator.md b/content/docs/ko/elements/components/activity-indicator.md new file mode 100644 index 00000000..0ee32a4a --- /dev/null +++ b/content/docs/ko/elements/components/activity-indicator.md @@ -0,0 +1,33 @@ +--- +title: ActivityIndicator +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_activity_indicator_.activityindicator +contributors: [qgp9] +--- + +ActivityIndicator 컴포넌트는 백그라운드에서 동작하는 것을 표시하는 프로그레스 인디케이터를 추가하고 사용자가 일시중지(pause) 할수 있게 도와줍니다. + +--- + +```html + +``` + +[> screenshots for=ActivityIndicator <] + +## Props + +| 이름 | 타입 | 설명 | +|------|------|-------------| +| `busy` | `Boolean` | `true` 일때 인디케이터가 활성화됨. + +## 이벤트 + +| 이름 | 설명 | +|------|-------------| +| `busyChange`| `busy` 프로퍼티가 바뀔때 발생(Emit) + +## 네이티브 컴포넌트 + +| Android | iOS | +|---------|-----| +| android.widget.ProgressBar (indeterminate = true) | UIActivityIndicatorView diff --git a/content/docs/ko/elements/components/button.md b/content/docs/ko/elements/components/button.md new file mode 100644 index 00000000..78359dd7 --- /dev/null +++ b/content/docs/ko/elements/components/button.md @@ -0,0 +1,36 @@ +--- +title: 버튼 (Button) +apiRef: https://docs.nativescript.org/api-reference/classes/_ui_button_.button +contributors: [qgp9] +--- + +버튼(Button) 컴포넌트는 탭(tab) 이벤트에 반응하는 버튼을 표시하는데 사용됩니다. + +상호작용이 탭(tab) 이벤트로만 제한되는 것은 아닙니다. +[네이티브-스크립트에서 사용가능한 모든 제스쳐에대하여 공식 문서를 읽어보세요](https://docs.nativescript.org/ui/gestures). + +--- + +```html +