Foren

YUI variable in Liferay 7

donino pienni, geändert vor 8 Jahren.

YUI variable in Liferay 7

Junior Member Beiträge: 81 Beitrittsdatum: 02.07.11 Neueste Beiträge
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, geändert vor 8 Jahren.

RE: YUI variable in Liferay 7

Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
Hi Donino,
Liferay 7 uses AlloyUI 3 (which is built on YUI), so that code will work in Liferay 7.

- Kyle
thumbnail
Eric COQUELIN, geändert vor 8 Jahren.

RE: YUI variable in Liferay 7

Expert Beiträge: 254 Beitrittsdatum: 03.11.13 Neueste Beiträge
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, geändert vor 8 Jahren.

RE: YUI variable in Liferay 7

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: YUI variable in Liferay 7

Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
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