FUIMapDetailPanelContentViewController
final public class FUIMapDetailPanelContentViewController : FUIMapDetailPanelViewController
A View Controller component within the FUIMapDetailPanel
as the content
. This controller shows additional details of a business object. It is up to the developer to set the tableView dataSource and delegate. Typically not used directly by developer.
Available:
headlineText
: AString
used as the header text inside the panel. The headline text can wrap up to two lines and truncates at the tail.subheadlineText
: AString
used as the subheadline text inside the panel. The subheadline text gradually disappears while thetableView
scrolls.didSelectTitleHandler
: An optional handler that can be set by the developer that is executed when theheadlineText
is tapped. If thedidSelectTitleHandler
is not nil, theheadlineText
text color is changed to show that it is tappable.
Usage:
let content: FUIMapDetailPanelContentViewController = FUIMapDetailPanelContentViewController()
content.headlineText = "Headline Text"
content.subheadlineText = "Subheadline Text"
content.didSelectTitleHandler = {
print("didSelectTitleHandler called!")
}
content.tableView.delegate = delegate
content.tableView.dataSource = dataSource
content.tableView.register(FUIMapDetailBaseObjectTableViewCell.self, forCellReuseIdentifier: FUIMapDetailBaseObjectTableViewCell.reuseIdentifier)
content.tableView.estimatedRowHeight = 100
content.tableView.rowHeight = UITableView.automaticDimension
-
A
String
used as the header text inside the panel. The headline text can wrap up to two lines and truncates at the tail.Declaration
Swift
public var headlineText: String! { get set }
-
A
String
used as the subheadline text inside the panel. The subheadline text gradually disappears while thetableView
scrolls.Declaration
Swift
public var subheadlineText: String! { get set }
-
An optional handler that can be set by the developer that is executed when the
headlineText
is tapped. If thedidSelectTitleHandler
is not nil, theheadlineText
text color is changed to show that it is tappable.Declaration
Swift
public var didSelectTitleHandler: (() -> Void)? { get set }
-
:nodoc
Declaration
Swift
required public init?(coder aDecoder: NSCoder)