Hi Tim,

*declaring* a viewer (or editor) so that it shows up in the dash:viewer selection is, of course, easy and done through RDF triples. However, the implementations of almost all viewers is in JavaScript/React. The process for those is described in the PDF linked from

https://www.topquadrant.com/doc/7.2/ext/points.html#adding-a-new-panel-to-the-editor-applications

One way of declaring simple viewer widgets without any programming is to infer rdf:HTML literals using a sh:values rule. So in theory, depending on your requirements, you could declare a new property with a sh:values rule that uses ADS, e.g.

graph.html(`
    <table>
        <tr>
            <td>${focusNode.value(rdfs.label)}</td>
        </tr>
    </table>
`)

This mechanism would however require a new property with a different sh:path, and also it can only produce normal HTML, and not the more powerful React-based tables that we use as foundation of our own viewers.

But maybe there is a middle ground here: using the built-in dash:ValueTableViewer as in

https://datashapes.org/forms.html#ValueTableViewer

and then use sh:values inferences to produce rdf:HTML? This could control colors and fonts, but supporting editing is a completely different beast altogether, because it would blur the lines of view and edit modes (and the complexity of permissions).

Using TQ Professional Services or Premium Support is another option. We could look at your requirements together and come up with a plan to either do custom development or generalize what we have to also support your use cases.

Holger


On 2022-06-18 3:22 am, Tim Smith wrote:

Hi,

I would like to add additional viewers and editors like those found in the dash namespace <https://www.datashapes.org/forms.html#overview>.  Is it possible to add to EDG in this way?  Can I add capability to an existing viewer?  In particular, I would like a more robust Value Table Viewer that supports colors, fonts, and editing for certain use cases.    If so, is there a guide available?

Thanks,

Tim

--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/dbeccbc0-25d3-4952-93b2-cec0a5170557n%40googlegroups.com <https://groups.google.com/d/msgid/topbraid-users/dbeccbc0-25d3-4952-93b2-cec0a5170557n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "TopBraid 
Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/06e2cbbc-1fb5-28b1-4073-ff105e8c7569%40topquadrant.com.

Reply via email to