Creating and using a component

Before a component can be used in a WebPart, it must be created in the onion.net Editor..
Some restrictions aside, all templates created in onion.net can be shown.

Known restrictions:

  • Structure abstraction only usable to a limited extent (the extension methods expect an onion.net XLink)
  • Generic forms not usable
  • ASP.NET not usable

In order to create a component, you must create a SharePoint gallery underneath the SharePoint object. Underneath this gallery you can define categories for grouping components.
Categories enable the integration of CSS and Javascript objects embedded for all components below this category. Moreover, it is possible to define a user-defined icon for display in SharePoint.

In a component, a method is called to a certain object. Parameters can be transferred in the following three ways:

  • Defining parameters with name and value
  • Using context-related variables from SharePoint as parameters
  • Using user-defined variables from SharePoint as parameters

If user-defined variables from SharePoint are used as parameters, the user’s interaction is necessary when configuring the component in SharePoint.

Moreover, defining an icon for display in SharePoint and defining CSS and Javascript objects for embedding in SharePoint is possible.

In order to use the created component in SharePoint, the onion.net Render Engine WebPart must be added. This can be configured next.
While configuring the WebPart, all components created in the onion.net Editor can be selected and, if necessary, adapted.