A form alternative which works together with a hylo-router component.

If a hylo-router component is present and the target property is eather not set or set to "_self" and the method is eather not set or "get", the push function of the hylo-router component is used. Otherwise the wrapped form is used.

Wraps a form element.

Properties

acceptCharset: string

Passed to the wrapped form component.

action: string

Passed to the wrapped form component.

autocomplete: string

Passed to the wrapped form component.

enctype: string

Passed to the wrapped form component.

formClass: string | {
    [className: string]: boolean;
}

Passed as class atribute to the wrapped form component.

Type declaration

  • [className: string]: boolean
formId: string

Passed as id atribute to the wrapped form component.

method: string

Passed to the wrapped form component.

name: string

Passed to the wrapped form component.

novalidate: string

Passed to the wrapped form component.

target: string

Passed to the wrapped form component.

Events

hyloSubmit: EventEmitter<any>

Fires, when the form gets submitted. Emits the original submit event of the wrapped form component.

The original submit event gets canceled if the hylo-router is used.

Generated using TypeDoc