Component Studio
Wisej.NET 4.2.0+
Component Studio creates custom controls. You describe the control in words, the agent draws a live sketch of it in HTML, CSS and JavaScript, and when the sketch is right, Create Component has the agent write a real Wisej.NET control into your project: a server class with its properties and events, the client class that renders it, and a theme mixin for its appearance. See Custom Controls for what such a control is made of.
Open it from Extensions → Wisej.NET → AI Component Studio, or right-click a Wisej.NET project or folder in Solution Explorer and choose New Wisej.NET Component....
A StarRating sketch: its properties and event on the left, sample values to try under the preview, and the files Create Component will write in the bar at the bottom.
The steps
- Name it and choose the namespace and the project it goes into.
- Choose the type. A Control is drawn by its own client code. A Widget wraps a JavaScript library, such as a chart or an editor; name the library and the agent builds the control around it.
- Describe it, to the agent with Ask agent or in the Assistant. The sketch updates live. The panels list the properties, events and dependencies the sketch defines; try sample values for the properties under the preview, and watch the events it fires. The sketch's files are tabs beside the preview.
- Create Component. The agent writes the control's server class, its client script and its theme mixin into the project, under
Controls\<Name>, and adds the control to the Toolbox under its namespace.
After that the button reads Update Component: change the sketch and press it again to bring the control up to date.
Limits
- The project must exist and use the SDK project format; the older project format is refused.
- The JavaScript libraries a widget names are listed, not downloaded. Add them to the project, as embedded resources or from a CDN, the way the generated code describes.