-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues @ x-tag.github.io/docs #21
Comments
@Enteleform line 448 :) |
That gives an example of delegate, the use of content is obsolete in v2 and is replace with template. |
@KipOmaha |
In v2 cumstom elements is used and the XTagElement and xtag object work together to provide its own es6 lifecycle callback. If you look at the extensions you can see the new syntax is
Its important to understand the execution thread and the parameters so make sure you take a look at the specs and also the PR requests => #19 The linked Also if your looking for compat with v1 lifecycle callbacks I don't think its part of the new specs. |
@KipOmaha These actually work directly in a subclassed |
Oh sorry yeah, i misunderstood. I thought you were talking about v1 lifecycle, sorry. FYI they work for extension mixins too |
[1]
The
Getting Started
&Gettin' Jedi with Pseudos
sections mention lifecycle callbacks, but do not address how to work with them. I've tried implementing them via pseudo, event, function, & x-tag v1's implementation; but haven't been able to get them working.[2]
The first example in
Gettin' Jedi with Pseudos
causes an exception:[3]
The
xtag.addEvents(ELEMENT, OBJECT)
example causes an exception:The exception is caused by
'keypress:keypass(13)': function(event){
.'keypress': function(event){
works as expected. What is the proper syntax for checking specific keypresses?[4]
The example at
A Word on Extensions and Pseudos
seems incomplete:The example would be more helpful with code & output that demonstrates how/when each of the pseudos/extensions are utilized.
The text was updated successfully, but these errors were encountered: