CollectionView

public class CollectionView : UICollectionView, UICollectionViewDelegate, UICollectionViewDataSource, AmytisViewType, JSCollectionExport, UIGestureRecognizerDelegate, ExtendableView

Undocumented

  • //////////////////// extendable view protocol

    Declaration

    Swift

    public var params: [String : Any]
  • id

    Undocumented

    Declaration

    Swift

    public var id: String { get set }
  • Undocumented

    Declaration

    Swift

    public var frame2: Frame { get set }
  • Undocumented

    Declaration

    Swift

    public var parent: AmytisView { get set }
  • Undocumented

    Declaration

    Swift

    public var viewXML: XML { get set }
  • Undocumented

    Declaration

    Swift

    public func requiredInit()
  • Undocumented

    Declaration

    Swift

    @objc
    public func reRenderWithChild(_ xml: String)
  • Undocumented

    Declaration

    Swift

    @objc
    public func reRender(_ params: [String : Any])
  • Undocumented

    Declaration

    Swift

    @objc
    public func reCalculateFrame(_ animated: Bool)
  • Undocumented

    Declaration

    Swift

    @objc
    public func animateToFrame(_ string: String, _ time: Double = 0.5, _ completion: JSValue? = nil)
  • Undocumented

    Declaration

    Swift

    public var onSelect: Any { get set }
  • Undocumented

    Declaration

    Swift

    public func onSelect(_ action: @escaping ((IndexPath) -> Void))
  • Undocumented

    Declaration

    Swift

    public var onLongPress: Any { get set }
  • Undocumented

    Declaration

    Swift

    public func onLongPress(_ action: @escaping ((IndexPath) -> Void))
  • Undocumented

    Declaration

    Swift

    public var onReady: JSValue { get set }
  • Undocumented

    Declaration

    Swift

    public var __headerForSection: [Int : ((AmytisView) -> Void)]
  • Undocumented

    Declaration

    Swift

    public var __cell: ((AmytisView, IndexPath) -> Void)?
  • Undocumented

    Declaration

    Swift

    public var __cellForIndex: [IndexPath : ((AmytisView) -> Void)]
  • Undocumented

    Declaration

    Swift

    public func cell(_ cell: @escaping ((AmytisView, IndexPath) -> Void))
  • Undocumented

    Declaration

    Swift

    public var rowCount: [Int : Int] { get set }
  • Undocumented

    Declaration

    Swift

    public func reload()
  • Undocumented

    Declaration

    Swift

    public func reload(index: IndexPath)
  • Undocumented

    Declaration

    Swift

    public var staticCount: Int { get set }
  • Undocumented

    Declaration

    Swift

    public func config()
  • Undocumented

    Declaration

    Swift

    public func startLoading()
  • Undocumented

    Declaration

    Swift

    public func stopLoading()
  • Undocumented

    Declaration

    Swift

    public func cellIdForIndex(_ action: ((IndexPath) -> String)? = nil)
  • Undocumented

    Declaration

    Swift

    public func cellForIndex(_ action: ((IndexPath) -> (String, ((AmytisView) -> Void)))? = nil)
  • Undocumented

    Declaration

    Swift

    public func headerIdForSection(_ action: ((Int) -> String?)? = nil)
  • Undocumented

    Declaration

    Swift

    public func headerForSection(_ action: ((Int) -> (String, ((AmytisView) -> Void))?)? = nil)
  • Undocumented

    Declaration

    Swift

    public func numberOfSections(in collectionView: UICollectionView) -> Int
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, heightForHeaderInSection section: Int) -> CGFloat
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, viewForHeaderInSection section: Int) -> UIView?
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
  • Undocumented

    Declaration

    Swift

    public func configCell(_ comp: JSValue)
  • Undocumented

    Declaration

    Swift

    public func onSelectCell(_ comp: JSValue)