Closed egordidenko closed 1 month ago
The FileUploaderRegular
class in FileUploaderRegular.js
has been updated to include a new headless
property. This property controls the visibility of the uploader based on a boolean value. The constructor initializes a visibility state, and an accessor method has been added to manage this state. The template and attribute bindings have also been updated to reflect these changes.
File Path | Change Summary |
---|---|
solutions/file-uploader/regular/FileUploaderRegular.js |
Added a headless property with visibility control logic. Introduced a new accessor method for headless , updated visibility control in the template, and added attribute binding for headless . |
sequenceDiagram
participant User
participant FileUploaderRegular
User->>FileUploaderRegular: Initialize with headless option
FileUploaderRegular->>FileUploaderRegular: Set isVisible to false
User->>FileUploaderRegular: Set headless to true/false
FileUploaderRegular->>FileUploaderRegular: Update isVisible based on headless value
FileUploaderRegular->>User: Render uploader based on isVisible
In the land of code, where bytes do dance,
A new feature arrives, with a headless stance.
Visibility controlled by a boolean's might,
FileUploaderRegular, hidden or in sight.
A rabbit's joy, in lines so clear,
Code evolves, bringing cheer!
🐰✨
Added the ability to use the headless attribute to hide/visible a button
Description
Checklist
Summary by CodeRabbit
headless
mode in the File Uploader, allowing users to control the visibility of the uploader interface via a simple boolean property.