get_snippet
Retrieve a ready-to-use RollDate JS and/or HTML snippet for the desired scenario, from single date to range, time, disabled, and highlight. Specify format and asset path to integrate quickly.
Instructions
Get a ready-to-use RollDate JS and/or HTML snippet for a scenario. Paths assume assets in vendor/rolldate/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Snippet format. Default: both | |
| scenario | Yes | Scenario id. One of: single, single-light, inline, range, range-two, multi, trigger, time-24, time-12, disabled, footer, highlight, range-presets | |
| assetPath | No | Relative path to installed assets. Default: vendor/rolldate |