Skip to content

Commit 0d43056

Browse files
committed
Adds error enabled method
1 parent 49b4864 commit 0d43056

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

FilledBoxSpinner/src/main/java/com/mcdev/filledboxspinner/FilledBoxSpinner.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ class FilledBoxSpinner @JvmOverloads constructor(
4949
binding.textInputLayout.hint = value
5050
}
5151

52+
var isErrorEnabled: Boolean
53+
get() = binding.textInputLayout.isErrorEnabled
54+
set(value) {
55+
binding.textInputLayout.isErrorEnabled = value
56+
}
57+
5258
init {
5359
val attributes = context.theme.obtainStyledAttributes(attributeSet, R.styleable.FilledBoxSpinner, defStyleAttr, defStyleAttr)
5460
val hint = attributes.getString(R.styleable.FilledBoxSpinner_hint)

0 commit comments

Comments
 (0)