The accept attribute of the control. Defines the file types as a list of comma-separated values that the file input should accept.
The autofocus attribute of the control.
The disabled state of the component.
Sets the control into invalid state (visual state only).
The label for the control.
The multiple attribute of the control. Used to indicate that a file input allows the user to select more than one file.
The name attribute of the control.
Whether the control will have outlined appearance.
The placeholder attribute of the control.
StaticstylesStatic ReadonlytagThe tagName read-only property of the Element interface returns the tag name of the element on which it's called.
The initial value of the component.
Returns the list of selected files.
Returns the HTMLFormElement associated with this element.
The resource strings for localization.
A string containing the validation message of this element.
Returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.
The value attribute of the control. Type varies based on the input type and can be string, Date or null.
A boolean value which returns true if the element is a submittable element that is a candidate for constraint validation.
Removes focus from the control.
Checks for validity of the control and emits the invalid event if it invalid.
Sets focus on the control.
Checks for validity of the control and shows the browser message if it invalid.
Selects all the text inside the input.
Sets a custom validation message for the control.
As long as message is not empty, the control is considered invalid.
Staticregister
Element
igc-file-input
Slot
prefix - Renders content before the input.
Slot
suffix - Renders content after input.
Slot
helper-text - Renders content below the input.
Slot
file-selector-text - Renders content for the browse button when input type is file.
Slot
file-missing-text - Renders content when input type is file and no file is chosen.
Slot
value-missing - Renders content when the required validation fails.
Slot
custom-error - Renders content when setCustomValidity(message) is set.
Slot
invalid - Renders content when the component is in invalid state (validity.valid = false).
Fires
igcChange - Emitted when the control's checked state changes.
Fires
igcCancel - Emitted when the control's file picker dialog is canceled.
Csspart
container - The main wrapper that holds all main input elements.
Csspart
input - The native input element.
Csspart
label - The native label element.
Csspart
file-names - The file names wrapper when input type is 'file'.
Csspart
file-selector-button - The browse button when input type is 'file'.
Csspart
prefix - The prefix wrapper.
Csspart
suffix - The suffix wrapper.
Csspart
helper-text - The helper text wrapper.