InspectorFloretFormatterType

public protocol InspectorFloretFormatterType

The InspectorFloretFormatterType is used to define how a Record is formatted when shown in the InspectorFloret.

  • Returns the RecordListFormattedData for a Record.

    Declaration

    Swift

    func listFormattedData(for record: Record) -> InspectorFloret.RecordListFormattedData

    Parameters

    record

    the Record

    Return Value

    The RecordListFormattedData

  • This function is called when deciding if a Record should be shown with a given query, for example when typing in a search field.

    Declaration

    Swift

    func recordMatchesQuery(record: Record, query: String) -> Bool

    Parameters

    record

    The Record

    query

    The Search Query

    Return Value

    Return true, if the Record matches the Query.