This file documents any relevant changes done to ViUR html5 since version 2.
This is the current development version.
html5.Widget.__init__()
now allows parameters equal to Widget.appendChild()
to directly stack widgets together.
Additionally, the following parameters are available:
appendTo
: Directly append the newly created widget to another widget.style
: Provide class attributes for styling added to the new Widget, using Widget.addClass()
.html5.Widget.appendChild()
and html5.Widget.prependChild()
can handle arbitrary input now, including HTML, lists of widgets or just text, in any order. html5.Widget.insertChild()
runs slightly different, but shares same features. This change mostly supersedes html5.Widget.fromHTML()
.replace
-parameter for html5.Widget.appendChild()
and html5.Widget.prependChild()
which clears the content.html5.ext.InputDialog
refactored & disables OK-Button when no value is present.html5.utils.doesEventHitWidgetOrChildren()
and html5.utils.doesEventHitWidgetOrParent()
now return the Widget or None instead of a boolean, to avoid creating loops and directly work with the recognized Widget.html5.Widget.onBind()
enables widgets to react when bound to other widgets using the HTML parser.vars
-parameter generally by **kwargs
, with backward-compatibility._WidgetClassWrapper
per html5.Widget
instead of creating one each time on the fly.Release date: Jul 26, 2019
Widget.Th()
now supporting full col-/rowspan getting and setting.parseHTML()
is the new function, fromHTML()
works like before and handles pre-compiled or raw HTML as parameter.fromHTML()
extended to vars
parameter to replace key-value pairs in text-nodes and attribute values expressed as {{key}}
.html5.registerTag()
can be used to define new or override existing HTML elements in the HTML parser by custom implementations based on html5.Widget()
Widget.isVisible()
as counterpart for Widget.isHidden()
.Release date: May 17, 2019
Widget.isHidden()
to check if a widget is currently shown.ESC
.Release date: Oct 2, 2018
html5.ext.SelectDialog
onFocusIn
and onFocusOut
eventsRelease date: Apr 23, 2018
html5.Head()
to access the document’s head object within the library.Release date: Nov 2, 2017
Widget.fromHTML()
) that is capable to compile HTML-code into DOM-objects of the html5 library, and an extra-feature to bind them to their root node for further access. This attempt makes it possible to create PyJS apps using the HTML5 library without creating every single element by hand.Widget.hide()
and Widget.show()
that cannot be overridden by styling. (setting “hidden” does not work when another display value is set).Widget.enable() and
Widget.disable()`.utils.parseFloat()
and utils.parseInt()
utility functions.colspan
attribute for Th()Release date: Dec 22, 2016
Widget.prependChild()
, Widget.insertBefore()
, Widget.children()
, Widget.removeAllChildren()
,
Widget.addClass()
, Widget.removeClass()
, Widget.toggleClass()
utils.doesEventHitWidgetOrParents()
, utils.doesEventHitWidgetOrChildren()
taken from vi77utils.textToHtml()