Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
867ec0f73a
commit
fa591d18fe
@ -22,12 +22,6 @@ class TrailingTooltipLabelViewController: BaseViewController<TrailingTooltipLabe
|
|||||||
picker: self.picker)
|
picker: self.picker)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
lazy var sizePickerSelectorView = {
|
|
||||||
PickerSelectorView(title: Tooltip.Size.medium.rawValue,
|
|
||||||
picker: self.picker,
|
|
||||||
items: Tooltip.Size.allCases)
|
|
||||||
}()
|
|
||||||
|
|
||||||
lazy var textPositionPickerSelectorView = {
|
lazy var textPositionPickerSelectorView = {
|
||||||
PickerSelectorView(title: TextPosition.left.rawValue,
|
PickerSelectorView(title: TextPosition.left.rawValue,
|
||||||
picker: self.picker,
|
picker: self.picker,
|
||||||
@ -63,8 +57,6 @@ class TrailingTooltipLabelViewController: BaseViewController<TrailingTooltipLabe
|
|||||||
addFormRow(label: "Font Category", view: fontCategoryPickerSelectorView)
|
addFormRow(label: "Font Category", view: fontCategoryPickerSelectorView)
|
||||||
addFormRow(label: "Text Size", view: textSizePickerSelectorView)
|
addFormRow(label: "Text Size", view: textSizePickerSelectorView)
|
||||||
addFormRow(label: "Text", view: textField)
|
addFormRow(label: "Text", view: textField)
|
||||||
|
|
||||||
addFormRow(label: "Tooltip Size", view: sizePickerSelectorView)
|
|
||||||
addFormRow(label: "Tooltip Title", view: titleTextField)
|
addFormRow(label: "Tooltip Title", view: titleTextField)
|
||||||
addFormRow(label: "Tooltip Content", view: contentTextField)
|
addFormRow(label: "Tooltip Content", view: contentTextField)
|
||||||
addFormRow(label: "Tooltip Close Button Text", view: closeButtonTextField)
|
addFormRow(label: "Tooltip Close Button Text", view: closeButtonTextField)
|
||||||
@ -107,8 +99,7 @@ class TrailingTooltipLabelViewController: BaseViewController<TrailingTooltipLabe
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setupModel() {
|
func setupModel() {
|
||||||
component.labelText = "Label Component"
|
component.labelText = "5G Ultra Wideband is available in your area"
|
||||||
component.labelTextStyle = .featureSmall
|
|
||||||
component.tooltipTitle = "5G Ultra Wideband is available in your area."
|
component.tooltipTitle = "5G Ultra Wideband is available in your area."
|
||||||
component.tooltipContent = "$799.99 (128 GB only) device payment purchase w/new or upgrade smartphone line on postpaid 5G Unlimited plans only req'd. Less up to $800 trade-in/promo credit applied over 36 mos.; promo credit ends if eligibility req’s are no longer met; 0% APR. Trade-in conditions apply.$799.99 (128 GB only) device payment purchase w/new or upgrade smartphone line on postpaid 5G Unlimited plans only req'd. Less up to $800 trade-in."
|
component.tooltipContent = "$799.99 (128 GB only) device payment purchase w/new or upgrade smartphone line on postpaid 5G Unlimited plans only req'd. Less up to $800 trade-in/promo credit applied over 36 mos.; promo credit ends if eligibility req’s are no longer met; 0% APR. Trade-in conditions apply.$799.99 (128 GB only) device payment purchase w/new or upgrade smartphone line on postpaid 5G Unlimited plans only req'd. Less up to $800 trade-in."
|
||||||
|
|
||||||
@ -119,10 +110,8 @@ class TrailingTooltipLabelViewController: BaseViewController<TrailingTooltipLabe
|
|||||||
textField.text = component.labelText
|
textField.text = component.labelText
|
||||||
|
|
||||||
//set the font
|
//set the font
|
||||||
fontCategory = .feature
|
fontCategory = .body
|
||||||
fontCategoryPickerSelectorView.text = "Feature"
|
|
||||||
textSize = .small
|
textSize = .small
|
||||||
textSizePickerSelectorView.text = "Small"
|
|
||||||
|
|
||||||
//setup UI
|
//setup UI
|
||||||
surfacePickerSelectorView.text = component.surface.rawValue
|
surfacePickerSelectorView.text = component.surface.rawValue
|
||||||
@ -179,9 +168,5 @@ class TrailingTooltipLabelViewController: BaseViewController<TrailingTooltipLabe
|
|||||||
self?.fontCategory = item
|
self?.fontCategory = item
|
||||||
}
|
}
|
||||||
|
|
||||||
sizePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
|
||||||
self?.component.tooltipSize = item
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user