refactored textWidth
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
0f6787c32a
commit
82a96d7b95
@ -117,7 +117,7 @@ class InputFieldViewController: BaseViewController<InputField> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setupModel() {
|
func setupModel() {
|
||||||
component.type = .text
|
component.fieldType = .text
|
||||||
component.width = 328
|
component.width = 328
|
||||||
component.labelText = "Street Address"
|
component.labelText = "Street Address"
|
||||||
component.helperText = "For example: 123 Verizon St"
|
component.helperText = "For example: 123 Verizon St"
|
||||||
@ -171,7 +171,7 @@ class InputFieldViewController: BaseViewController<InputField> {
|
|||||||
extension InputFieldViewController: ComponentSampleable {
|
extension InputFieldViewController: ComponentSampleable {
|
||||||
static func makeSample() -> ComponentSample {
|
static func makeSample() -> ComponentSample {
|
||||||
let component = Self.makeComponent()
|
let component = Self.makeComponent()
|
||||||
component.type = .text
|
component.fieldType = .text
|
||||||
component.width = 328
|
component.width = 328
|
||||||
component.labelText = "Street Address"
|
component.labelText = "Street Address"
|
||||||
component.helperText = "For example: 123 Verizon St"
|
component.helperText = "For example: 123 Verizon St"
|
||||||
|
|||||||
@ -52,7 +52,7 @@ class NotificationViewController: BaseViewController<VDS.Notification> {
|
|||||||
override func setupForm() {
|
override func setupForm() {
|
||||||
super.setupForm()
|
super.setupForm()
|
||||||
addFormRow(label: "Surface", view: surfacePickerSelectorView)
|
addFormRow(label: "Surface", view: surfacePickerSelectorView)
|
||||||
addFormRow(label: "Type", view: notificationTypePickerSelectorView)
|
addFormRow(label: "Style", view: notificationTypePickerSelectorView)
|
||||||
addFormRow(label: "Layout", view: layoutTypePickerSelectorView)
|
addFormRow(label: "Layout", view: layoutTypePickerSelectorView)
|
||||||
addFormRow(label: "Title", view: titleTextField)
|
addFormRow(label: "Title", view: titleTextField)
|
||||||
addFormRow(label: "SubTitle", view: subTitleTextField)
|
addFormRow(label: "SubTitle", view: subTitleTextField)
|
||||||
@ -114,7 +114,7 @@ class NotificationViewController: BaseViewController<VDS.Notification> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
notificationTypePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
notificationTypePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||||
self?.component.type = item
|
self?.component.style = item
|
||||||
}
|
}
|
||||||
|
|
||||||
layoutTypePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
layoutTypePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user