Skip to main content

Module fields

Module fields 

Source
Expand description

The fields ops may set on modules, chapters and pages, and their value checks.

ConstantsΒ§

CHAPTER_FIELDS πŸ”’
Chapter fields ops may set.
COUNT_FIELDS πŸ”’
Page fields computed from the page’s content and its students’ activity.
DERIVED_FIELDS πŸ”’
Ids and fields the server sets from the order and nesting of the tree.
MODULE_FIELDS πŸ”’
Module fields ops may set.
PAGE_FIELDS πŸ”’
Page fields ops may set.

FunctionsΒ§

check_field πŸ”’
field_error πŸ”’
Why field can’t be set on a kind, teaching where it changes instead.
is_hex_color πŸ”’
not_nullable πŸ”’
optional_color πŸ”’
optional_date πŸ”’
required_text πŸ”’
value as a non-empty string; field names it when null, what otherwise.
unknown_field πŸ”’