ElementorexCms.Blocks.Countdown (ElementorexCms v0.1.0)

Copy Markdown View Source

daisyUI countdown to a date and time. The values are computed when the page is rendered and kept ticking by the runtime script (elementorex_cms/runtime, see the README); without it the countdown shows the values of the render.

The target time is read in the time zone configured with config :elementorex_cms, time_zone: "America/Santiago" (UTC by default; any other zone needs a time zone database such as tz or tzdata).

Summary

Functions

Palette and editor metadata of the block.

Props of the block, in declaration order.

Callback implementation for ElementorexCms.Block.render/1.

Type stored in documents for this block.

Functions

default_children()

Callback implementation for ElementorexCms.Block.default_children/0.

meta()

Palette and editor metadata of the block.

props()

Props of the block, in declaration order.

render(assigns)

Callback implementation for ElementorexCms.Block.render/1.

type()

Type stored in documents for this block.