$k. PropertyView

new PropertyView()

A view on a property of the knowledge graph

Extends

Methods

configurationElement() → {$k.SemanticElement}

Get configuration element

Since
  • 5.2.0
Returns:
Type: 
$k.SemanticElement

domainModel() → {object}

Get domain model

Since
  • 5.4.0
Inherited From
Returns:

SemanticElement or TopicCollection

Type: 
object

getPanelsToActivate()

Get the panel configurations activated by the current action.

Only supported in the following application environment(s): View-Configuration-Mapper

Since
  • 5.3.2
Deprecated
  • Use the corresponding function of the action

getVariable(variable)

get the value of the given variable

Parameters:
NameTypeDescription
variablestring
Inherited From
Returns:

(arrays of) SemanticElements and timestamps are auto-converted to native form

isDeleted()

True if the property model is to be deleted.

Since
  • 5.4.0

isModified()

True if the value is differing from the value of the property model.

Since
  • 5.4.0

isPotential()

True if the property model is not yet existing.

Since
  • 5.4.0

newValue()

Get the value. May differ from the current property value if state=modified.

Since
  • 5.4.0

panelView() → {$k.PanelView}

Get this view's panel view

Since
  • 5.4.0
Inherited From
Returns:
Type: 
$k.PanelView

parentView() → {$k.View}

Get this view's parent view

Since
  • 5.3.2
Inherited From
Returns:
Type: 
$k.View

renderContext() → {RenderContext}

Get render context

Only supported in the following application environment(s): View-Configuration-Mapper

Since
  • 5.0.0
Inherited From
Returns:
Type: 
RenderContext

revert()

Revert to the state represented in the model.

Version
  • Experimental feature, might be removed at any time
Since
  • 5.4.0

roles() → {Array}

Get the roles of the view, if any assigned.

Since
  • 5.4.0
Inherited From
Returns:

Array of Strings

Type: 
Array

semanticElement() → {$k.SemanticElement}

Get semantic element

Since
  • 5.2.0
Returns:
Type: 
$k.SemanticElement

session() → {$k.Session}

Get the current session

Only supported in the following application environment(s): View-Configuration-Mapper

Since
  • 5.2.0
Inherited From
Returns:
Type: 
$k.Session

setNewValue(value)

Set the value. Needs a separate save-action to actually write the value to the model.

Parameters:
NameTypeDescription
value
Since
  • 5.4.0

setState(state) → {object}

Set the state of the view

Parameters:
NameTypeDescription
stateobject
Version
  • Experimental feature, might be removed at any time
Since
  • 5.4.0
Inherited From
Returns:
Type: 
object

setVariable(variable, value)

set the value of the given variable

Parameters:
NameTypeDescription
variablestring
value

supported variable types include all javascript base types as well as: timestamp, SemanticElement and arrays of the latter

Inherited From

state() → {object}

Get the state of the view - varies according to view type and implementation

Version
  • Experimental feature, might be removed at any time
Since
  • 5.4.0
Inherited From
Returns:
Type: 
object

subViews() → {$k.View}

Get this view's sub-views or an empty array if there are none

Since
  • 5.4.0
Inherited From
Returns:
Type: 
$k.View

viewsWithRole(role) → {Array}

Get all views with the given role searching from this view down to all sub-views.

Parameters:
NameTypeDescription
rolestring
Since
  • 5.4.0
Inherited From
Returns:

Array of Views

Type: 
Array

viewType() → {string}

Get the view type

Since
  • 5.4.0
Inherited From
Returns:

the view type: edit, query, etc.

Type: 
string