View Source Evision.SmartCell.SimpleList (Evision v0.2.9)

A kino for displaying a list of labels. This kino is primarily used to present top classification predictions.

Examples

predictions =  [
  "malamute",
  "Siberian husky",
  "Eskimo dog",
  "Tibetan mastiff",
  "German shepherd"
]
Evision.SmartCell.SimpleList.new(predictions)

Summary

Functions

Creates a new kino displaying the given list of items. Expects a list of tuples, each element being the label and its score.

Types

Functions

@spec new([{String.t(), number()}]) :: t()

Creates a new kino displaying the given list of items. Expects a list of tuples, each element being the label and its score.