ui/button/filedialogbuttonview
module
Classes
module:ui/button/filedialogbuttonview~FileDialogButtonViewmodule:ui/button/filedialogbuttonview~FileDialogListItemButtonView
Type Definitions
module:ui/button/filedialogbuttonview~FileDialogButtonViewBasemodule:ui/button/filedialogbuttonview~FileInputViewDoneEvent
Functions
FileDialogViewMixin( view ) → Mixed<Base, FileDialogButtonViewBase>module:ui/button/filedialogbuttonview~FileDialogViewMixinMixin function that enhances a base button view class with file dialog functionality. It is used to create a button view class that opens the native select file dialog when clicked.
The enhanced view includes a button and a hidden file input. When the button is clicked, the file dialog is opened. The mixin adds properties and methods to the base class to handle the file selection.
Type parameters
Base : extends Constructor<ButtonView>
Parameters
view : BaseThe base class to be enhanced with file dialog functionality.
Returns
Mixed<Base, FileDialogButtonViewBase>A new class that extends the base class and includes the file dialog functionality.