View Source Zoonk.Content.Course.Config (Zoonk v0.3.0-alpha)

Reusable configuration and utilities for courses.

Link to this section Summary

Functions

Returns the list of level keys.

Returns a label for a given level key.

Level options for displaying on a select component where the label is the key and the key is the value.

Returns the list of supported levels for the course.

Link to this section Functions

@spec level_keys() :: [atom()]

Returns the list of level keys.

@spec level_label(atom()) :: String.t()

Returns a label for a given level key.

@spec level_options() :: [{String.t(), atom()}]

Level options for displaying on a select component where the label is the key and the key is the value.

@spec levels() :: [{atom(), String.t()}]

Returns the list of supported levels for the course.