scautable

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

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
scautable.type

Members list

Type members

Classlikes

trait EasyDerive[TC[_]]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object HtmlTableRender.type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait HtmlTableRender[A]

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 Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A <: Product](a: Seq[A], addHeader: Boolean)(using tableDeriveInstance: HtmlTableRender[A]): TypedTag[String]

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: A, addHeader: Boolean)(using tableDeriveInstance: HtmlTableRender[A]): TypedTag[String]
inline def deriveCaseClass[A](using m: ProductOf[A]): HtmlTableRender[A]
def deriveTableHeader[A](a: A)(using instance: HtmlTableRender[A]): TypedTag[String]
def deriveTableRow[A](a: A)(using instance: HtmlTableRender[A]): TypedTag[String]
inline def getElemLabels[A <: Tuple]: List[String]
inline def getTypeclassInstances[A <: Tuple]: List[HtmlTableRender[Any]]
inline def summonInstancesHelper[A](using m: Of[A]): List[HtmlTableRender[Any]]
inline def tableHeader[A](using m: Of[A]): TypedTag[String]

Inherited methods

With scaladoc

With scaladoc

Attributes

Inherited from:
PlatformSpecific

Givens

Givens

given booleanT: HtmlTableRender[Boolean]
given doubleT: HtmlTableRender[Double]
given intT: HtmlTableRender[Int]
given longT: HtmlTableRender[Long]
given optT[A](using inner: HtmlTableRender[A]): HtmlTableRender[Option[A]]
given seqT[A](using inner: HtmlTableRender[A]): HtmlTableRender[Seq[A]]
given stringT: HtmlTableRender[String]