ParamDerivation

A param we work out for you from another one. kind says what happens to a value you send for it: compiled_formula replaces it with what source compiles to; rendered_text, matched_date_format and scale_buttons keep it, and work it out from source only when you send none.

Applied when a block is added or edited, not on a whole-diagram write. A source that will not compile is refused with param_formula_not_compiled. Date patterns that do not start with the one their picker format renders are kept, and reported in violations with param_format_not_matched, however the diagram was written. Scale buttons whose texts are not the numbers from source to until are refused with param_buttons_not_matched, and a range of more than 100 numbers with param_range_too_long.

  • Which derivation this is: compiled_formula compiles a formula into the tree the runtime reads, rendered_text writes a plain text as the HTML the widget renders, matched_date_format writes the strftime pattern of a date picker's format, and scale_buttons writes one button per number of a range, the number as its text and $ followed by it as its payload.

    values
    compiled_formularendered_textmatched_date_formatscale_buttons
  • The param that is derived.

  • The param it is derived from, which the caller does write. For a derivation worked out from a range, the param the range starts at.

  • The param the range ends at, for a derivation worked out from a range, and absent for any other.