SolidOS / solid-ui

User Interface widgets and utilities for Solid
https://solidos.github.io/solid-ui/dist/solid-ui.js
MIT License
148 stars 41 forks source link

added new method renderAsDiv #384

Closed SharonStrats closed 3 years ago

SharonStrats commented 3 years ago

This function allows a person Object consisting of (img, name, link) to be created as a div.

configurable with Options clickable: true or false onClickFunction: function to be added to div if clickable wrapInATR: true // adds the div to a tr within a td to conform with existing panes otherwise only returns a Div

The Div is styled with flexbox, currently justify-content: space-between (thinking we could make this configurable as well)

SharonStrats commented 3 years ago

This was completed in a different PR so I will close it.