1.

What Is Difference Between Parbase And Parsys?

Answer»

parbase: The parbase allows components to inherit attributes from other components, similar to subclasses in object oriented languages such as Java, C++, and so on. For example, when you OPEN the /libs/foundation/components/text node in the CRX EXPLORER, you see that it has a property named sling:resourceSuperType, which references the parbase component. The parbase here defines tree scripts to RENDER IMAGES, titles, and so on, so that all components SUB classed from this parbase can use this script.

parasys (Paragraph System): The paragraph system (parsys) is a compound component that allows authors to add components of different types to a page and contains all other paragraph components. Each paragraph type is represented as a component. The paragraph system itself is also a component, which contains the other paragraph components.

parbase: The parbase allows components to inherit attributes from other components, similar to subclasses in object oriented languages such as Java, C++, and so on. For example, when you open the /libs/foundation/components/text node in the CRX Explorer, you see that it has a property named sling:resourceSuperType, which references the parbase component. The parbase here defines tree scripts to render images, titles, and so on, so that all components sub classed from this parbase can use this script.

parasys (Paragraph System): The paragraph system (parsys) is a compound component that allows authors to add components of different types to a page and contains all other paragraph components. Each paragraph type is represented as a component. The paragraph system itself is also a component, which contains the other paragraph components.



Discussion

No Comment Found