ali1k / ld-r

Linked Data Reactor (LD-R)
http://ld-r.org
Other
128 stars 30 forks source link

property set to isHidden is still visible in detailed view #75

Open mathib opened 4 years ago

mathib commented 4 years ago

Expected Behavior

When setting a property to isHidden the property should not show in regular reactor view and detailed view.

Actual Behavior

The property is hidden in regular reactor view but not in detailed view

Steps to Reproduce the Problem

  1. Add a named property and set isHidden in reactor.js:
        property: {
            'generic': {
                propertyReactor: ['IndividualProperty'],
                //following are object-based scope:
                objectReactor: ['IndividualObject'],
                //to view/edit individual object values
                objectIViewer: ['BasicIndividualView'],
                objectIEditor: ['BasicIndividualInput'],
                extendedOEditor: ['BasicIndividualDetailEdit'],
                extendedOViewer: ['BasicIndividualDetailView'],
                shortenURI: 0, 
                category: ['General properties'], // MB: default category for all properties
                allowNewValue: 1,
            },
            'https://domain.org/myhiddenproperty': {
                isHidden: 1,
            },

Specifications