Fore 3.0
#272
Replies: 1 comment
-
Another one mentioned by Juri - might make sense to keep the instance() function as before but resolving to the variable instead - this would keep the migration effort lower as it's not required to change all over the UI at once to get it running with 3.0. Interesting aspects at least ... maybe also a migration script would be helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
a glimpse towards Fore 3.0
Maybe there will another 2.x release but i started some work towards 3.0.
This release will be breaking by removing some
<fx-
elements where a better, native HTML alternative exists. For instance we've discussed the<fx-instance>
element before as being unluckily named - it always requires extra explanation to sayit's a data-container
. Further HTML already defines the<data>
element. Though it's purpose is to define key/value pairs mainly it does not prohibit child content and would be a more natural match for the purpose. This means that<fx-instance>
will just be replaced with the native HTML element.Example:
This comes to the price to use
data-
prefixes for the attributes (as the standard requires for custom attributes) but otherwise is more expressive than the old syntax and builds directly on an already existing element.This is probably only one change that will go into 3.0. The
<fx-dialog>
is another candidate as HTML defines this also in the meantime. - we'll critically review other candidates. The rationale behind it is to give already existing elements priority over custom elements and simplify either the codebase and the usage of Fore by building upon the common ground.drop it or keep it
Of course the question arises if we should just keep the
<fx-instance>
element and add the use of<data>
as an additional option. However i decided against it:Enough reasons i hope to justify a 'hard' break requiring users to update their pages when upgrading to 3.0
Making these changes is still a pile of work but at least will shrink the codebase and bring us closer to the platform.
Unfortunately the comments are not migrated from the original a discussion - please see the link below if interested.
Originally posted by @JoernT in #269
Conclusions from discussions so far
<fx-instance>
element is dropped and replaced with HTML<data>
elementinstance()
function. For each data element there will be a predefined variable using the id as its name.Beta Was this translation helpful? Give feedback.
All reactions