Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
Update dom.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 9, 2020
1 parent 61289bd commit 145141f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions dom.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@ DOM Basics
Creating DOM Elements and Fragments
-----------------------------------

The DOM is built starting with an `Element <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/Element.kt>`_, normally the `BodyElement <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/html/BodyElement.kt>`_, which is obtained easily as follows:

.. code-block:: kotlin
import kweb.*
import kweb.dom.element.*
fun main() {
Kweb(port = 16097) {
val body : BodyElement = doc.body
}
}
Let's create a <button> as a child of the <body>:

.. code-block:: kotlin
Expand Down

0 comments on commit 145141f

Please sign in to comment.