123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // MeetingFormRoomPickerCell.swift
- // O2Platform
- //
- // Created by FancyLou on 2020/11/25.
- // Copyright © 2020 zoneland. All rights reserved.
- //
- import UIKit
- import Eureka
- class MeetingFormRoomPickerCell: Cell<OOMeetingRoomInfo>, CellType {
-
- @IBOutlet weak var roomLabel: UILabel!
-
- override func setup() {
- super.setup()
- selectionStyle = .none
- }
-
- override func update() {
- super.update()
- if let value = self.row.value {
- self.roomLabel.text = value.name
- }
- }
-
-
- }
- final class MeetingFormRoomPickerCellRow: Row<MeetingFormRoomPickerCell>, RowType {
-
- required init(tag: String?) {
- super.init(tag: tag)
- cellProvider = CellProvider<MeetingFormRoomPickerCell>(nibName: "MeetingFormRoomPickerCell")
- }
-
- var onPresent: (() -> Void)?
-
- override func customDidSelect() {
- super.customDidSelect()
- onPresent?()
- }
- }
|