We have some improvements to the framework that requires some changes.
The Content feature manages and it is responsible for the content inside the component. Most components like Layer, Modal, Tabs, Validation, Zoom uses this feature.
The content could be have three different sources:
The DOM Element way was changed
Now you must set the jQuery Object instead of the CSS Selector. Let's see it in action.
Before this change, it was like the following example.
$('.layer').layer('#layerContent');
But now, you must set it in this as a jQuery object.
$('.layer').layer($('#layerContent'));
If you are sending the options as a configuration object do the following.
$('.layer').layer({'content': $('#layerContent')});
Maybe you want to add a HTML fragment.
$('.layer').layer($('<p>This is the new content!.</p>'));
If you are instantiating a layer and store it in a variable:
var layer = $('.layer').layer();
Then, from the content method you can set a different content.
layer.content($('#layerContent'));
Also, the Layer allows you to change the content from the show method.
layer.show($('#layerContent'));
Validation default messages
Now, each Validation has a default message.
If you set a Max validation like this:
$('.amount')required().and().max(10);
You will get the following:
To be accurate with the standards, we have changed some component names.
The TabNavigator component now is called Tabs and the Expando is called Expandable.
You should instantiate the component in this way
$('.tabs').tabNavigator();
Don't be worried, you will be able to change it progressively. The old name and the new name will be together for a few versions.
Performance and flexibility
We are going to change the class taxonomy and other things, to be faster, stronger, more flexible and more performant.
started to unify the mobile and desktop framework at the same repository.
release a test engine using Jasmin.
are moving to prototype inheritance way.
deprecated the Controllers class.
774 - Tabs: When it gets its content via ajax, it doesn't wor
773 - Floats: The public "content" should be a method, like previous versions
765 - Zoom is not working on IE (7,8,9)