webbingbrasil / filament-copyactions Goto Github PK
View Code? Open in Web Editor NEWA easy-to-use copy actions for Filament Admin Pages, Tables and Form Fields.
A easy-to-use copy actions for Filament Admin Pages, Tables and Form Fields.
using CopyableTextColumn
Describe the bug
Just switched from TextColumn
to use CopyableTextColumn
component, but the styling was changed.
To Reproduce
Steps to reproduce the behavior:
TextColumn
and CopyableTextColumn
component with a same textTextColumn
shown bigger and doesn't has any padding. But, text on CopyableTextColumn
component shown smaller and has a padding.Expected behavior
I think it should not change the default text styling, isn't?
Additional context
Actually I don't know is this a bug or an expected behavior. I'm just trying to use CopyableTextColumn
component, but looks like it has a different styling. I know, this can be solved easily by publishing the views, but I just want a confirmation is it a bug or not. If you think this was a bug, I'm happy to create a PR for a fix.
In a local dev env using https and Safari 16.2 on macOS 12.6 as the browser, I'm seeing this console error when clicking the generated copy button:
[Error] Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
Works fine in Chrome. From what I can tell Safari doesn't like that the clipboard action is coming from the result of an API query instead of a user click. Is this a known issue / limitation? Thank you.
Similar to the Column, just give the option to customize the message after clicking on the copy button on forms. Somehing like:
\Webbingbrasil\FilamentCopyActions\Forms\Actions\CopyAction::make()
->copyable(fn($component) => "xxx")
->successMessage(fn($component) => "my message"))
Describe the bug
After upgrading to 1.1.1 version, I got an error Undefined variable $success
After checking the file history, it seems this commit that leads to this errors.
To Reproduce
Steps to reproduce the behavior:
CopyableTextColumn
component on a resourceExpected behavior
There is no error
Describe the bug
I install the plugin and It worked as expected from the UI, except that it didn't copy anything to Clipboard
The table action is not working if you set a tooltip on the action.
When you set a tooltip the x-data of the button ends up empty, and when you try to copy, the console show the error copyable is not defined
.
Is there a workaround ? I don't care about the "Copied!" tooltip if there is a conflict with that.
Support filament V3
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.