Hi Pablo,
There are 3 things that control the look and feel of a magritte component.
1. First of all there is the container component. This is the MAContainerComponent by default. It does not do much by default, except asking its renderer to render the container. In QCMagritte there are examples that extend on the containerComponent, that for instance can render tabs. The main responsibility of the container is to hold the “element components” (see 3).
2. Second there is the renderer. This is the most important part, that defines the look and feel. This is a visitor that visits the description to render the container. By default this is a table renderer (MATableRenderer), and there is also the MACssRenderer. For more advanced layout you probably want to create your own renderer.
3. Finally there are the element components. These are responsible for rendering the element. It makes sure that a string is rendered as “canvas input” with the correct parameters, and that a “selection” is rendered as a combo box, etc.
In QCMagritte there is an example of something that renders bootstrap with AJAX callbacks. If you follow the tutorial you come along this quite fast.
Depending on what you want to change you need to be at one of the above 3 places.
Diego
Hi all, i want to know which class or classes have/has the reponsibility if rendering a magritte component.
What i really want is customize the way or the aspect the component look like.
For example incoroporating bootstrap or jquey , etc
TIA
Ing. Pablo Digonzelli
Software Solutions
IP-Solutiones SRL _______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki