Is it possible to create custom Components and add them to the Perspective Components panel? For example, I would like to create a Bootstrap-style Alert component (I built an Alert view and use an embedded view and message handlers currently), or specialized graph components (such as canvasjs charts). I realize this will probably involve using React.
Also, is it worth taking the time to build the Components or should I just use the Webdev module?
You can, but it requires fairly advanced knowledge of React/front-end, and at least a passing knowledge of Java building and packaging, because Ignition modules are essentially just .zip files of Java code.
You can take a look at https://github.com/inductiveautomation/ignition-sdk-examples/tree/master/perspective-component for an 8.0.X example, but be aware that there are breaking API changes that are as-yet undocumented in creating a Perspective component for 8.1.X.
Exactly what I was looking for… Thanks @PGriffith
That would be nice if there will be some video on how to create component for perspective. The topic is complex.
is there any video or manuals for getting started with the development ?
The only way to get some videos about this topic is to get gold certificate to access them in your account section.
You also need to know typescript and react and basic java language.
I suppose you speak about the tea and coffee video.
I will look a it.
I saw some of your project and it looks very nice.
Do you have some tips and tricks for me to start design my own object ?
Yes, exactly, I put some steps for anybody who likes to use perspective in full power.
my tips are learning following at following steps:
Study Perspective global CSS3 file (Must)
At this point, you can do most of the animations and effects you want in The Perspective
Learn Chrome dev tools. You need it to debug and understand some components’ CSS settings for further manipulation.
Learn React fully
Learn some basics of Webpack
Learn some basics of Java
Other tools like Yarn, Graddle … are handle by IA example.
For me, because I don’t have knowledge of JAVA right now and still learning React, I design my components separately and use web dev module and iframe to import them into perspective view which very complicated task. Especially for syncing changes from perspective to component. For some basic component that doesn’t need any update from the perspective session, this method is ideal for now.
As you can see, the process is like using JAVA classes in Vision and using Paintable Canvas(like iframe).
Learn Web development is much much easier, more fun, and enjoyable compare to JAVA.
Thanks for the help and tips
Thanks for the detailed Tips.
I wanted to ask regarding where can I find the Perspective global CSS3 file?
Enable advanced stylesheet here: