scala-dom-types icon indicating copy to clipboard operation
scala-dom-types copied to clipboard

Scala types for your library to represent HTML tags, attributes, properties and CSS styles

Results 22 scala-dom-types issues
Sort by recently updated
recently updated
newest added

Copy over MDN docs from ~~ScalaTags~~ _MDN_ to SVG attributes that don't have them, similar to other attributes. @doofin please let me know if you will be working on this....

help wanted
documentation

Currently, the children properties of a tag do not know, into which kind of tag they are inserted. There is no parent relation of the types. For example, we can...

enhancement
discussion

Scala.js 1.11 ([news](https://www.scala-js.org/news/2022/09/15/announcing-scalajs-1.11.0/)) now [removes unused fields](https://github.com/scala-js/scala-js/issues/2227). If I understand correctly, this means that we can have e.g. `val div = htmlTag("div")` instead of it being a lazy val, and...

enhancement

The HTMLDialogElement [has been added to scala-js-dom](https://github.com/scala-js/scala-js-dom/releases/tag/v2.3.0), it could also be added here.

How can `scala-dom-types` api be used to render html on the server side (non js) ? eg, ```scala val indexhtml = div("hello world") val indexhtmlstr = indexhtml.toString // then serve...

Finally added this 😅 I'm a bit confused, it wasn't obvious to me if `DomInputEvent` is being used anywhere? https://github.com/raquo/scala-dom-types/blob/de166bd3816ae2ad35bbc2fb405a120e46a03afb/shared/src/main/scala/com/raquo/domtypes/generic/defs/eventProps/FormEventProps.scala#L24-L33

Let me know if there is anything missing or if something should be done differently :)

I think the new source-generation approach has been a big success. I am really really happy with how we've been able to use it in Calico. Thank you! Building on...

For example, the current data for the `label` attribute is: https://github.com/raquo/scala-dom-types/blob/6900584aea4e3ae85c5349e4e57ada925a849d4b/shared/src/main/scala/com/raquo/domtypes/defs/reflectedAttrs/ReflectedHtmlAttrDefs.scala#L609-L622 At least according to this page, it is supported only for ``, ``, ``, ``, and `` tags. https://www.geeksforgeeks.org/html-label-attribute/...

Hi! My understanding (correct me if I'm wrong) is that `scala-dom-types` is now really a build tool - whose purpose is to be used at build / compile time to...