• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • svelte-ast-print
  • svelte-ast-print/template
  • printOnDirective

Function printOnDirective

  • printOnDirective(
        n: OnDirective,
        opts?: Partial<PrintOptions>,
    ): Result<OnDirective>
  • Parameters

    • n: OnDirective
    • Optionalopts: Partial<PrintOptions> = {}

    Returns Result<OnDirective>

    @NO_SIDE_EFFECTS

    Deprecacted

    Will be removed from Svelte v6 https://svelte.dev/docs/svelte/legacy-on

    Example: without modifiers

    on:name={expression}
    

    Example: with modifiers

    on:name|modifiers={handler}
    
    • Defined in pkgs/svelte-ast-print/src/template/mod.js:364

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc