January 2, 2021
Estimated Post Reading Time ~

Difference b/w Granite UI Components based on Coral UI 2 and Coral UI 3

Given the fact that we have two sets of Granite UI components based on Coral UI2 and Coral UI3, below are the differences mentioned per Adobe documentation.

Coral UI2 Components Path         /libs/granite/ui/components/foundation/*
Coral UI3 Components Path         /libs/granite/ui/components/coral/foundation/*
Coral UI2 Clientlibs                     granite.ui.foundation, granite.ui.foundation.admin,                                                                 coralui2
Coral UI3 Clientlibs                     granite.ui.coral.foundation, coralui3

Coral UI 3 based components will not have layout concept. Replacement/alternative being direct standard component for simplicity.
  • While creating touch UI dialog, we create a node named "layout" with resourceType being the layouts from the path "granite/ui/components/foundation/layouts/*"
    • Eg: Coral UI 2: if layout resourceType used is granite/ui/components/foundation/layouts/tabs, equivalent Coral UI 3, granite/ui/components/coral/foundation/tabs.
    • section component(granite/ui/components/foundation/section)that we use to define for each of the tabs has been replaced with container component(granite/ui/components/coral/foundation/container)
$.validator which we were using for validation before is now been replaced with foundation-validation
Common attributes (like class, title, id) are strictly implemented.(this is more to the implementation perspective - retrieving logic of these common attributes. The same can be evident by comparing any particular component of both sets, say textfield available in /libs/granite/ui/components/foundation/textfield/render.jsp and /libs/granite/ui/components/coral/foundation/textfield/render.jsp

Few similar set of components has been removed. A list of components changed/removed has been mentioned here.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.