MenuListSectionController
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKMenuListSectionController)
open class MenuListSectionController : NSObject
Handles a section in the menu of a MenuViewController
.
-
An object that acts as the delegate for selections.
Declaration
Swift
public weak var selectionDelegate: MenuListSectionControllerSelectionDelegate?
-
An object that acts as the delegate for display related events.
Declaration
Swift
public weak var displayDelegate: MenuListSectionControllerListDisplayDelegate?
-
The inset of the section.
Declaration
Swift
public var inset: UIEdgeInsets { get set }
-
The line spacing of the section.
Declaration
Swift
public var minimumLineSpacing: CGFloat { get set }
-
The interitem spacing of the section.
Declaration
Swift
public var minimumInteritemSpacing: CGFloat { get set }
-
Whether this is the first section in the list.
Declaration
Swift
public var isFirstSection: Bool { get }
-
Whether this is the last section in the list.
Declaration
Swift
public var isLastSection: Bool { get }
-
The index of the section.
Declaration
Swift
public var section: Int { get }
-
Returns
true
if this section controller has any selected items.Declaration
Swift
open var hasSelectedItems: Bool { get }
-
Returns
true
if the item atindex
is selected.Declaration
Swift
open func hasSelection(at index: Int) -> Bool
-
Marks the item at
index
as selected. Does not call delegate methods.Declaration
Swift
open func selectItem(at index: Int)
-
Marks the item at
index
as deselected. Does not call delegate methods.Declaration
Swift
open func deselectItem(at index: Int)