tags 0.5.3
tags: ^0.5.3 copied to clipboard
Build elements by tag name.
Tags Changes #
0.5.3 #
- Added an optional named parameter
selectto thebeginEditmethod ofEditableLabelfor selecting the label's text which defaults totrue. - Updated API documentation generation to use the new
docgentool.
0.5.2 #
- Fixed a styling issue in the
EditableLabel.
0.5.1 #
- Capitalized the
TAGS_DOMconstant.
0.5.0 #
- Decoupled the
DOMfrom thetagslibrary by adding atags.domlibrary; the library user is responsible for setting thedomvariable prior to making any other calls to thetagslibrary. For example:
import 'package:tags/tags.dart' as tags;
import 'package:tags/dom.dart';
main() {
tags.dom = TAGS_DOM;
...
}
- Removed the
registerTagsCustomElementsfunction; element registration is now performed when setting a value to thedomtop-level variable. - Added the
togglemethod toToggleable.
0.4.7 #
- Implement a better workaround for dartbug.com/15401 below the API surface.
0.4.6 #
- Added the
isEditing,cancelEdit, andcompleteEditmembers to theEditableLabeland replaced theonEndEditstream withonEditChange.
0.4.5 #
- Added the
ResourcesandThemeableabstract classes.
0.4.4 #
- Implement a necessary workaround for dartbug.com/15401.
0.4.3 #
- Added an optional
displayFilterfield to theEditableLabel; when this is not null it affects the rendered text for all calls to thetextsetter. - Added an
onEndEditstream to theEditableLabel; one event will be added to this stream for every call tobeginEditto signal the end of editing. - Added
<circle>,<clipPath>,<defs>,<ellipse>,<g>,<line>,<marker>,<path>,<polygon>,<polyline>,<rect>,<svg>,<symbol>and<use>tags.
0.4.2 #
- Updated for the Dart 1.0 release.
0.4.1 #
- Updated to SDK 0.8.10_r29803.
- Added
EditableLabelcustom element with<editable-label>tag andeditableLabel()Tag function.
0.4.0 #
- Added
<article>,<aside>,<audio>,<footer>,<header>,<iframe>and<section>tags. - Removed the deprecated
HasElementandBindModeltypes and thebindModelfunction.
0.3.0 #
- Changed
ToggleButtonandToggleOpenfrom subtypes ofHasElementto subtypes ofButtonElementandHtmlElementrespectively. - Added the
childrenfunction for building the children of an already created element.
0.2.1 #
- Restored the
textfunction name fromappendText; thanks to user feedback!
0.2.0 #
- Added
<code>tag. - Added the
createTagfunction to simplifyTagcreation for tag authors. - Renamed the
textfunction toappendTextto align better with the underlying call toElement.appendText.
0.1.9 #
- Moved all of the libraries into
lib/src/and added alib/tags.dartlibrary to expose the entire public API as a single import for users. As part of this change a number of function and class names were made longer to help avoid conflicts. This change was made to make the package easier to use, as a lot of user code was importing two or three different libraries from this package and that seemed unnecessary.
0.1.8 #
- Updated to SDK 0.6.19_r26297.
- Updated the
htmltag builder to use the newHtmlHtmlElement(renamed fromHtmlElement) indart:html. You buy posters!
0.1.7 #
- Removed export of
dart:htmlfrom thetags.htmllibrary. While this was convenient, it is emerging as an anti-pattern in Dart because it can cause a lot of confusion and errors for users who already importdart:htmlin their code.
0.1.6 #
- The
shadowfunction in thehtmllibrary now returns aShadowRootinstead of just aNode; this allows you to set properties on it directly such as:
shadow(() {
// your shadow dom
})..applyAuthorStyles = true;
0.1.5 #
- Updated to SDK 0.6.9_r25388.
- Added
<del>tag. - Some improvement to
ToggleOpen.
0.1.4 #
- Renamed
DropDowntoToggleOpento more accurately reflect what it does; it can open as a drop-down but it could be styled to open up instead for example. - More work on
ToggleOpenincluding dartdoc. - Renamed the
downandupgetters onToggleButtontoisDownandisUp.
0.1.3 #
- Updated to SDK 0.5.20.2_r24160.
- Prefix all library names with
tags; for exampletags.html.
0.1.2 #
- Added the function
appendin thehtmllibrary; this provides a means to append existing elements in a tag builder expression. - Expose the
bindfunction in thecustomlibrary; this is a convenience function for implementors of custom tags.
0.1.1 #
- Updated to SDK 0.5.13_r23552.
- Added
<nav>tag. - Added an optional
argsto eachTag. In thehtmllibrary these are ignored. In thecustomlibrary we have defined aBindfunction type which we take as theargsfor our custom tags. This gives us a mechanism to deliver the instance ofHasElementback to the user as a workaround for thextagissue noted in the prior version. - Added an experimental
DropDowncustom tag; this is a work in progress.
0.1.0 #
- Updated to SDK 0.5.9_r22879.
- ToggleButton can no longer store itself in the
xtagof itselementas the type constraint forxtagwas tightened toElementin this SDK version. We need to wait for the ability to extendElementand for the custom element work indart:htmlto settle down before we can make any design changes here, so for now there is no way to backtrack from theelementto its ToggleButton.
0.0.9 #
- Updated to SDK 0.5.7_r22611.
- Avoid streaming ToggleButton
statesevents unless there is a listener and the stream is not paused. This avoids potential memory leaks that might arise with buffered events.
0.0.8 #
- Updated to SDK 0.5.5_r22416.
0.0.7 #
- Updated to SDK 0.4.7_r21548.
0.0.6 #
- Export
dart:htmllibrary fromhtml.dartso that users have only 1 import. - Added
custom.dartlibrary and a ToggleButton to the showcase example. Thecustom.dartlibrary aims to provide a canonical set of custom elements (web components). - The
buildfuncton in thebuilder.dartlibrary now takes aCreatefunction to build the tag's element. This allows us to differentiate between a builder function called within the scope of aCreate(constructor / initializer of an Element) and the scope of aBuild(child appending logic).
0.0.5 #
- Removed
tags.dartlibrary; users should importhtml.dartdirectly. - Added
builder.dartlibrary to expose tag builder functionality; This library may be used for user-defined custom tags.
0.0.4 #
- Added
<i>,<u>,<dl>,<dt>, and<dd>tags. - Added
Buildtypedef and some documentation to the API. - Added
documentationto pubspec.
0.0.3 #
- Added
<b>tag. - Added
text(String)builder function to performElement.appendText(String)from withinbuild()closures.
0.0.2 #
- Added basic usage to the README.
0.0.1 #
- Initial release.