registerRalma(Ractive, options?)
Adds Ralma's component constructors to Ractive.components. Re-running registration leaves existing matching components in place.
registerRalma(Ractive, {
overwrite: false,
warnOnCollision: true,
});Register components and control name collisions
Adds Ralma's component constructors to Ractive.components. Re-running registration leaves existing matching components in place.
registerRalma(Ractive, {
overwrite: false,
warnOnCollision: true,
});overwrite: replace existing component names when truewarnOnCollision: log warnings when a name is already registeredLink-capable components reject unsafe schemes such as javascript:, data:, and vbscript:. Components that can render as buttons use button mode instead.
Use the exported list to render component indexes, validate templates, or assert that registration completed.
Use the exported set to inspect which components sanitize their href value before rendering a link.