Forums de discussion

YUI variable in Liferay 7

donino pienni, modifié il y a 8 années.

YUI variable in Liferay 7

Junior Member Publications: 81 Date d'inscription: 02/07/11 Publications récentes
Hi everyone,

As far as i understood, final versions of Liferay 7 should make use of AlloyUI 4 but i could not pick up more informations about this . Since alloyUI is switching to jquery as mentionned here, does it mean "YUI" variable won't be available anymore in pages? And what about "A.one"? For example, are those scripts supposed to fail in final versions of Liferay 7 (they currently work in Liferay 7 alpha2):

A.one
<aui:script use="aui-base">
	A.one('#<portlet:namespace />selectFolderButton').on('click',function(event) {
           //do  stuff...
	};
</aui:script>


YUI
<aui:script use="aui-base">
  YUI().ready(
    'aui-tooltip',
    function(Y) {
      new Y.TooltipDelegate(
        {
          trigger: '.mytooltip',
          position: 'bottom'
        }
      );
    }
  );
</aui:script>


Thanks in advance!
thumbnail
Kyle Joseph Stiemann, modifié il y a 8 années.

RE: YUI variable in Liferay 7

Liferay Master Publications: 760 Date d'inscription: 14/01/13 Publications récentes
Hi Donino,
Liferay 7 uses AlloyUI 3 (which is built on YUI), so that code will work in Liferay 7.

- Kyle
thumbnail
Eric COQUELIN, modifié il y a 8 années.

RE: YUI variable in Liferay 7

Expert Publications: 254 Date d'inscription: 03/11/13 Publications récentes
Kyle Joseph Stiemann:

Liferay 7 uses AlloyUI 3 (which is built on YUI), so that code will work in Liferay 7.


I understood that YUI was over in Liferay 7. Does Alloyui 4 work in Liferay 7 ?

What's the strategy regarding YUI as it is not anymore maintained by Yahoo!?

Thank you for your answer.
thumbnail
David H Nebinger, modifié il y a 8 années.

RE: YUI variable in Liferay 7

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
The plan is to get rid of YUI, but that wasn't going to be done for the 7.0 ga release. From the symposium, this is a change that will be coming later, I just don't know when.
thumbnail
Kyle Joseph Stiemann, modifié il y a 7 années.

RE: YUI variable in Liferay 7

Liferay Master Publications: 760 Date d'inscription: 14/01/13 Publications récentes
Hi Eric,
According to a recent blog post by Nate Cavenaugh, AlloyUI 3 is included with Liferay 7, but it is deprecated. The team also decided to release metal.js instead of AlloyUI 4 for various reasons. In short, the front end team at Liferay is sunsetting AlloyUI, and metal.js has been created to replace it. Please check out the blog post for more details.

- Kyle