scautable
io.github.quafadas.scautable.scautable
object scautable extends PlatformSpecific
This is a simple library to render a scala case class as an html table. It assumes the presence of a HtmlTableRender instance for each type in the case class.
Attributes
- Experimental
- true
- Graph
-
- Supertypes
- Self type
-
scautable.type
Members list
Type members
Classlikes
object HtmlTableRender
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HtmlTableRender.type
Implement this trait for any type you want to render as part of an html table. See the concrete examples below.
Implement this trait for any type you want to render as part of an html table. See the concrete examples below.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Render a sequence of unknown type as an html table
Render a sequence of unknown type as an html table
Value parameters
- a
-
- A sequence of unknown type you wish to render as an html table
- addHeader
-
- If true, add a header row to the table
- tableDeriveInstance
-
- An instance of HtmlTableRender for the type
A
Attributes
def apply[A <: Product](a: Seq[A], addHeader: Boolean, h: List[String])(using tableDeriveInstance: HtmlTableRender[A]): TypedTag[String]
def apply[A <: Product](a: A, addHeader: Boolean)(using tableDeriveInstance: HtmlTableRender[A]): TypedTag[String]
inline def nt[K <: Tuple, V <: Tuple](a: Seq[NamedTuple[K, V]])(using tableDeriveInstance: HtmlTableRender[V]): TypedTag[String]
Inherited methods
With scaladoc
Givens
Givens
Extensions
Extensions
In this article