ViFilterItem
open class ViFilterItem: NSObject
Base/abstract class for a filter item that will appear in the filter bar This is not meant to be used directly. Should only instantiate the sub classes
-
title to display in filter
Declaration
Swift
public var title: String -
filter type
Declaration
Swift
public var filterType : ViFilterItemType -
mapping to schema in Dashboard Refer to this link for more details: http://developers.visenze.com/setup/#Upload-your-datafeed
Declaration
Swift
public var schemaMapping: String -
Default constructor
- Parameters:
- title: Filter to display to user in mobile app
- schemaMapping: Backend schema mapping
Declaration
Swift
public init(title: String, schemaMapping: String)Parameters
titleFilter to display to user in mobile app
schemaMappingBackend schema mapping
- Parameters:
-
reset filter. To be implemented and overrided by subclass
Declaration
Swift
open func reset() -
Undocumented
Declaration
Swift
open class ViFilterItem: NSObject -
generate the fq (filter query) value for filtering for this item. Need to be overrided by subclass
Declaration
Swift
open func getFilterQueryValue() -> String -
to be implemented by subclass soft clone the current object to keep filter configuration.
Declaration
Swift
open func clone() -> ViFilterItem
View on GitHub
ViFilterItem Class Reference