put to public since all subcomponents are required to be accessible to devs.
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
c0c666c2cb
commit
e7220e67a3
@ -93,13 +93,7 @@ open class DropdownSelect: Control {
|
|||||||
$0.translatesAutoresizingMaskIntoConstraints = false
|
$0.translatesAutoresizingMaskIntoConstraints = false
|
||||||
$0.axis = .vertical
|
$0.axis = .vertical
|
||||||
}
|
}
|
||||||
|
|
||||||
private var titleLabel = Label().with {
|
|
||||||
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
|
||||||
$0.textAlignment = .left
|
|
||||||
$0.textStyle = .bodySmall
|
|
||||||
}
|
|
||||||
|
|
||||||
var containerView: UIView = UIView().with {
|
var containerView: UIView = UIView().with {
|
||||||
$0.translatesAutoresizingMaskIntoConstraints = false
|
$0.translatesAutoresizingMaskIntoConstraints = false
|
||||||
}
|
}
|
||||||
@ -110,44 +104,53 @@ open class DropdownSelect: Control {
|
|||||||
$0.spacing = VDSFormControls.spaceInset
|
$0.spacing = VDSFormControls.spaceInset
|
||||||
}
|
}
|
||||||
|
|
||||||
private var dropdownField = UITextField().with {
|
//--------------------------------------------------
|
||||||
$0.translatesAutoresizingMaskIntoConstraints = false
|
// MARK: - Public Properties
|
||||||
$0.tintColor = UIColor.clear
|
//--------------------------------------------------
|
||||||
$0.font = TextStyle.bodyLarge.font
|
open var titleLabel = Label().with {
|
||||||
|
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
||||||
|
$0.textAlignment = .left
|
||||||
|
$0.textStyle = .bodySmall
|
||||||
}
|
}
|
||||||
|
|
||||||
private var inlineDisplayLabel = Label().with {
|
open var inlineDisplayLabel = Label().with {
|
||||||
$0.textAlignment = .left
|
$0.textAlignment = .left
|
||||||
$0.textStyle = .boldBodyLarge
|
$0.textStyle = .boldBodyLarge
|
||||||
$0.lineBreakMode = .byCharWrapping
|
$0.lineBreakMode = .byCharWrapping
|
||||||
$0.sizeToFit()
|
$0.sizeToFit()
|
||||||
}
|
}
|
||||||
|
|
||||||
private var selectedOptionLabel = Label().with {
|
open var selectedOptionLabel = Label().with {
|
||||||
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
||||||
$0.textAlignment = .left
|
$0.textAlignment = .left
|
||||||
$0.textStyle = .bodyLarge
|
$0.textStyle = .bodyLarge
|
||||||
$0.lineBreakMode = .byCharWrapping
|
$0.lineBreakMode = .byCharWrapping
|
||||||
}
|
}
|
||||||
|
|
||||||
private var icon: Icon = Icon().with {
|
open var icon: Icon = Icon().with {
|
||||||
$0.size = .medium
|
$0.size = .medium
|
||||||
$0.name = Icon.Name(name: "down-caret")
|
$0.name = Icon.Name(name: "down-caret")
|
||||||
}
|
}
|
||||||
|
|
||||||
private var errorLabel = Label().with {
|
open var errorLabel = Label().with {
|
||||||
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
||||||
$0.textAlignment = .left
|
$0.textAlignment = .left
|
||||||
$0.textStyle = .bodySmall
|
$0.textStyle = .bodySmall
|
||||||
}
|
}
|
||||||
|
|
||||||
private var helperLabel = Label().with {
|
open var helperLabel = Label().with {
|
||||||
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
||||||
$0.textAlignment = .left
|
$0.textAlignment = .left
|
||||||
$0.textStyle = .bodySmall
|
$0.textStyle = .bodySmall
|
||||||
}
|
}
|
||||||
|
|
||||||
private var optionsPicker = UIPickerView()
|
open var dropdownField = UITextField().with {
|
||||||
|
$0.translatesAutoresizingMaskIntoConstraints = false
|
||||||
|
$0.tintColor = UIColor.clear
|
||||||
|
$0.font = TextStyle.bodyLarge.font
|
||||||
|
}
|
||||||
|
|
||||||
|
open var optionsPicker = UIPickerView()
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Constraints
|
// MARK: - Constraints
|
||||||
@ -376,7 +379,7 @@ open class DropdownSelect: Control {
|
|||||||
icon.surface = surface
|
icon.surface = surface
|
||||||
errorLabel.isHidden = true
|
errorLabel.isHidden = true
|
||||||
}
|
}
|
||||||
icon.color = titleLabel.textColorConfiguration.getColor(self)
|
icon.color = iconColorConfig.getColor(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
open func updateHelperLabel() {
|
open func updateHelperLabel() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user