awcodes / filament-addons Goto Github PK
View Code? Open in Web Editor NEWA set of components / fields to extend Filament Admin.
A set of components / fields to extend Filament Admin.
Issue:
When attempting to use the OEmbed component to enter a YouTube URL, the following error is thrown:
FilamentAddons\Forms\Components\OEmbed::FilamentAddons\Forms\Components\{closure}(): Argument #1 ($set) must be of type Closure, Filament\Forms\Set given, called in /home/abbasmashaddy72/Documents/Sites/Dynamic/cms/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
Resolution:
To resolve this issue, I made the following changes to the code:
Old Code (Line No: 30):
->afterStateUpdated(function(Closure $set, Closure $get, $state) use ($field) {
Updated Code:
->afterStateUpdated(function (Set $set, Get $get, $state) use ($field) {
After making this change, the issue was resolved, and the OEmbed component worked as expected.
Thanks to the FilamentAddons package for its valuable contributions in enhancing Filament's admin panel functionality! ๐๐
I am adding a Pull Request for the Same, I would appreciate it if accepted.
This wraps:
TextColumn::make('title')
->wrap()
->searchable()
->sortable(),
This does not:
TitleWithStatus::make('title')
->statusField('status')
->statuses(['Draft', 'Published'])
->colors(['text-warning-600' => 0, 'text-success-600' => 1])
->wrap()
->sortable()
->searchable(),
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.