Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Block Picker Styles #136

Merged
merged 5 commits into from
Feb 9, 2024
Merged

[Feat]: Block Picker Styles #136

merged 5 commits into from
Feb 9, 2024

Conversation

Z3d0X
Copy link
Owner

@Z3d0X Z3d0X commented Feb 9, 2024

No description provided.

Copy link

what-the-diff bot commented Feb 9, 2024

PR Summary

  • Incorporation of new functions to allow for styling customization
    The PageBuilder and FilamentFabricatorPlugin classes now have added methods, namely blockPickerStyle(), which enable users to customize the block picker style in Filament's Builder. Users now have the choice between two styles: Dropdown (which is the default option) and Modal.

  • Introduction of new templates for the dropdown and modal block pickers
    These new blade templates further enrich the customization abilities for different block pickers.

  • Introduction of an enum class for the block picker style
    The newly added BlockPickerStyle is an enum class with the two options available for style customization: Dropdown and Modal.

  • Addition of column configurability for block picker
    A new method named blockPickerColumns() in the PageBuilder class gives users the ability to set the number of columns in the block picker.

  • Storage property for selected block picker style in the PageBuilder class
    A new property, $blockPickerStyle, is introduced to store the selected block picker style.

  • Update in setup and boot methods
    The setUp() method in the PageBuilder class and the boot() method in the FilamentFabricatorPlugin class have been updated. The modifications allow selection and default style setup based on the plugin configuration, improving user experience by allowing style preference to be saved and utilized. The boot() was also updated to include block picker style configuration when registering the plugin, ensuring that style preferences are incorporated upon registration.

@Z3d0X Z3d0X merged commit 733e559 into 2.x Feb 9, 2024
4 checks passed
@Z3d0X Z3d0X deleted the enhanced-block-picker branch February 9, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant