Fomantic-UI icon indicating copy to clipboard operation
Fomantic-UI copied to clipboard

[cards] Using cards as widgets

Open jamessampford opened this issue 2 years ago • 4 comments

Feature Request

It may be nice to use cards as widgets to show data within some kind of admin panel (or as a separate view for more control)

Widgets should be able to support:

  • statistics (if one, then show fluid #2536 rather than needing a wrapper to show one as per example)
  • Statistics with trends #1595
  • charts with padding around (like example) or an optional edge-to-edge chart (ie. no padding)
  • Background chart
  • Simple tables
  • Buttons (as per cards)
  • Map
  • Coloured background
  • Progress
  • Settings dropdown
  • A placeholder card/widget (similar to placeholder segment - https://fomantic-ui.com/elements/segment.html#placeholder-segment) where can add a new card/widget

Example

I’ve put a quick example together at https://jsfiddle.net/ot432z7q/1/

Needs a bit of polish making the menu icon a little over to the right

Edge-to-edge chart example IMG_1440

Some additional samples: https://cruip.com/demos/mosaic/

jamessampford avatar Nov 01 '22 20:11 jamessampford

Regarding "edge2edge" Chart: If you move the div outside of content and as a direct child of the card you already have no padding See https://jsfiddle.net/lubber/ho0ftesk/2/ image

lubber-de avatar Nov 02 '22 08:11 lubber-de

Regarding "edge2edge" Chart: If you move the div outside of content and as a direct child of the card you already have no padding

Ah, nice! 👍

jamessampford avatar Nov 02 '22 19:11 jamessampford

IMG_1508 IMG_1507 IMG_1506 IMG_1516 IMG_1515 IMG_1514 IMG_1513 IMG_1512 IMG_1511 IMG_1510 IMG_1509

jamessampford avatar Nov 12 '23 17:11 jamessampford

We need something like this! :)

ivangomes avatar Mar 07 '24 18:03 ivangomes