updated with more properties
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
1b4d7f0f2a
commit
a2fd68be15
@ -31,15 +31,17 @@ open class Tilet: VDS.Tilet, VDSMoleculeViewProtocol {
|
|||||||
open func updateView(_ size: CGFloat) {}
|
open func updateView(_ size: CGFloat) {}
|
||||||
|
|
||||||
public func viewModelDidUpdate() {
|
public func viewModelDidUpdate() {
|
||||||
surface = viewModel.surface
|
containerBackgroundColor = viewModel.containerBackgroundColor
|
||||||
|
containerPadding = viewModel.containerPadding
|
||||||
|
aspectRatio = viewModel.aspectRatio
|
||||||
|
width = viewModel.width
|
||||||
|
textWidth = viewModel.textWidth
|
||||||
|
textPercentage = viewModel.textPercentage
|
||||||
titleModel = viewModel.title
|
titleModel = viewModel.title
|
||||||
subTitleModel = viewModel.subTitle
|
subTitleModel = viewModel.subTitle
|
||||||
badgeModel = viewModel.badge
|
badgeModel = viewModel.badge
|
||||||
descriptiveIconModel = viewModel.descriptiveIcon
|
descriptiveIconModel = viewModel.descriptiveIcon
|
||||||
directionalIconModel = viewModel.directionalIcon
|
directionalIconModel = viewModel.directionalIcon
|
||||||
width = viewModel.width
|
|
||||||
textWidth = viewModel.textWidth
|
|
||||||
textPercentage = viewModel.textPercentage
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//since this is a class func, we can't reference it directly
|
//since this is a class func, we can't reference it directly
|
||||||
|
|||||||
@ -16,7 +16,9 @@ open class TiletModel: MoleculeModelProtocol {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
public static var identifier: String = "tilet"
|
public static var identifier: String = "tilet"
|
||||||
public var backgroundColor: Color?
|
public var backgroundColor: Color?
|
||||||
public var surface: Surface = .light
|
public var containerBackgroundColor: TileContainer.ContainerBackgroundColor = .black
|
||||||
|
public var containerPadding: TileContainer.ContainerPadding = .padding4X
|
||||||
|
public var aspectRatio: TileContainer.ContainerScalingType = .none
|
||||||
public var badge: TiletBadgeModel?
|
public var badge: TiletBadgeModel?
|
||||||
public var title: TiletTitleModel?
|
public var title: TiletTitleModel?
|
||||||
public var subTitle: TiletSubTitleModel?
|
public var subTitle: TiletSubTitleModel?
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user