8000 add new pyweb.ui.elements section · pyscript/docs@c26760b · GitHub
[go: up one dir, main page]

Skip to content

Commit c26760b

Browse files
committed
add new pyweb.ui.elements section
1 parent dee2add commit c26760b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/user-guide/dom.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,33 @@ The `ElementCollection` class currently supports the following attributes:
272272
* `html`: changes the `html` attribute on all the elements of a collection.
273273
* `value`: changes the `value` attribute on all the elements of a collection.
274274

275+
276+
## PyWeb.ui
277+
278+
Pyweb.ui is a umbrella package that focused on providing access to the extensive
279+
web APIs supported by the browser, with simpler, smaller and pythonic interface.
280+
281+
### pyweb.ui.elements
282+
283+
As mentioned in the above section about PyDom, the Standard Web APIs are massive
284+
and not always very user-friendly. While `PyDom` focuses on querying and interacting
285+
with existing elements in a web page, `pyweb.ui.elements` is a module focused
286+
on providing a pythonic interface to create new elements on a web page.
287+
288+
PyWeb is build on top of the foundation, provided by PyScript and PyDom, extending
289+
it with features focused on creating and customizing new elements on a web page.
290+
These elements are a subclass of pydom.Element and are fully compattible with the
291+
pydom Element API.
292+
293+
294+
!!! warning
295+
296+
PyDom is currently a work in progress.
297+
298+
We welcome feedback and suggestions.
299+
300+
301+
275302
## Working with JavaScript
276303

277304
There are three ways in which JavaScript can get into a web page.

0 commit comments

Comments
 (0)
0