LayoutComponents icon indicating copy to clipboard operation
LayoutComponents copied to clipboard

Visualizing content of components

Open wout opened this issue 6 years ago • 3 comments

Hi,

I just discovered cockpit and really love it. It has everything required for a project I am working on. One of the last hurdles is a UX issue with this add-on. Is there a way to visualize something of the content of a component? Like a small thumbnail for an image, the first sentence of a text element, ... Currently the UI is sober, which I personally like, but the people I work with will need a more visual reference.

image

I know the components can be named, but showing the actual content will make it a bit better. :)

UPDATE:

If this is not something you plan or want to implement, could you at least give me some pointers on how to approach if I want to implement it myself?

wout avatar Feb 24 '19 14:02 wout

That make sense to me, proposed already something similar - https://discourse.getcockpit.com/t/layout-field-type/303/5

pauloamgomes avatar Feb 24 '19 23:02 pauloamgomes

I know this is an old issue, but I just published an addon to add previews to custom layout components. Check it out: https://github.com/Pervanovo/CockpitLayoutComponentPreviews ps. It requires a PR on Cockpit which is not accepted yet

I think cockpit CMS already implemented Text/Image preview. I think the problem is, is it possible to show container/text/image preview from a custom LayoutComponent?

Is is possible to create a custom Grid component and show it just like the Grid component? (for example)

This is an old issue but still relevant

TulioAbreu avatar Oct 25 '21 14:10 TulioAbreu