# File selector

The usage of File selector is almost same as button. It inherits from the XbuttonComponent and supports the accept property and the change event.

# Code example

# API

You may check button for more details.

# Events

Name Description Example Version
change Triggered when the button is clicked. If the file selector turns on multiple selection, file is an array, otherwise it is a single file instance fileSelector.on('change', (file) => { if(Array.isArray(file)) {} else {} }) 7.4