Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextField onErrorChange 기본값 넣기 #259

Closed
cometj03 opened this issue Feb 24, 2024 · 0 comments · Fixed by #264
Closed

TextField onErrorChange 기본값 넣기 #259

cometj03 opened this issue Feb 24, 2024 · 0 comments · Fixed by #264
Assignees
Labels
good first issue Good for newcomers yds-compose YDS Compose 버전

Comments

@cometj03
Copy link
Member

cometj03 commented Feb 24, 2024

@Composable
fun SimpleTextField(
    text: String = "",
    modifier: Modifier = Modifier,
    isError: Boolean = false,
    isEnabled: Boolean = true,
    onValueChange: (value: String) -> Unit,
    placeHolder: String = "",
    hintText: String = "",
    keyboardOptions: KeyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text),
    onErrorChange: (Boolean) -> Unit, // 기본값 설정 안 된 상태
)

SimpleTextField를 사용할 때마다 보통 사용할 일이 없는 onErrorChange를 넣어주는 것이 번거롭다고 생각해서 기본값이 있는 것이 좋겠다고 생각했습니다

@cometj03 cometj03 added good first issue Good for newcomers yds-compose YDS Compose 버전 labels Feb 24, 2024
@leeeyubin leeeyubin self-assigned this Mar 18, 2024
leeeyubin added a commit that referenced this issue Mar 20, 2024
* add : onErrorChange 기본값 추가

* chore : versionName 업데이트
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers yds-compose YDS Compose 버전
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants