Form builder custom block picker
I'm using the Filament Builder in my form. I have defined multiple blocks.
Everything is working as expected.
I'm trying to extend the functionality of the block picker. I would like to put certain blocks as "advanced" block.
I know I can only show blocks where the user has access to. But I would like to show all the blocks in the picker but make some blocks greyed-out and put a lock icon next to it.
Maybe even add a little tooltip on click/hover to show this block is only available for specific users/roles.
The disable() option doesn't do what I expect
I've tried a custom component to overwrite the Builder. But this also changes the block functionality. I only want to change the block picker.
Does anyone have experience with this?
Can someone push me in the right direction?
Everything is working as expected.
I'm trying to extend the functionality of the block picker. I would like to put certain blocks as "advanced" block.
I know I can only show blocks where the user has access to. But I would like to show all the blocks in the picker but make some blocks greyed-out and put a lock icon next to it.
Maybe even add a little tooltip on click/hover to show this block is only available for specific users/roles.
The disable() option doesn't do what I expect
I've tried a custom component to overwrite the Builder. But this also changes the block functionality. I only want to change the block picker.
Does anyone have experience with this?
Can someone push me in the right direction?