UNPKG

@scania/tegel

Version:
16 lines (15 loc) 726 B
/** reference: https://github.com/ionic-team/ionic-framework/blob/main/core/src/utils/helpers.ts#L346 * * Appends a hidden input element to allow the component * work within and get picked up by a <form>. * @param element The element on which the input with be appended. * @param name Name of the input. * @param value The value of the input. * @param disabled Disables the input if true. * @param additionalAttributes Additional attributes that should be passed to the input. */ declare const appendHiddenInput: (element: HTMLElement, name: string, value: string | undefined | null, disabled: boolean, additionalAttributes?: Array<{ key: string; value: string; }>) => void; export default appendHiddenInput;