container model
This commit is contained in:
parent
6d81705c2e
commit
ac17015a09
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
@objcMembers public class DropDownListItemModel: MoleculeContainerModel, ListItemModelProtocol {
|
@objcMembers public class DropDownListItemModel: ContainerModel, ListItemModelProtocol {
|
||||||
public static var identifier: String = "dropDownListItem"
|
public static var identifier: String = "dropDownListItem"
|
||||||
public var molecules: [[ListItemModelProtocol]]
|
public var molecules: [[ListItemModelProtocol]]
|
||||||
public var dropDown: DropDownModel
|
public var dropDown: DropDownModel
|
||||||
@ -16,10 +16,10 @@ import Foundation
|
|||||||
public var line: LineModel? = LineModel(type: .none)
|
public var line: LineModel? = LineModel(type: .none)
|
||||||
public var hideArrow: Bool? = true
|
public var hideArrow: Bool? = true
|
||||||
|
|
||||||
public init(molecule: MoleculeModelProtocol, molecules: [[ListItemModelProtocol]], dropDown: DropDownModel) {
|
public init(molecules: [[ListItemModelProtocol]], dropDown: DropDownModel) {
|
||||||
self.molecules = molecules
|
self.molecules = molecules
|
||||||
self.dropDown = dropDown
|
self.dropDown = dropDown
|
||||||
super.init(with: molecule)
|
super.init()
|
||||||
}
|
}
|
||||||
|
|
||||||
private enum CodingKeys: String, CodingKey {
|
private enum CodingKeys: String, CodingKey {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user