This PR will implement the ermrestjs side of changes for the new input_iframe property that we discussed here.
Summary of changes:
Changed Reference.generateColumnsList to call the new SourceObjectWrapper.processInputIframe which will take care of processing input_iframe property of column directives.
If a column used in the mapping of another column's input_iframe, I'm removing it from the visible columns list.
Changed Reference.update to properly add the extra mapped column values to the projection list.
Added the following props to ReferenceColumn:
isInputIframe: will signal that the column has the input_iframe prop.
inputIframeProps: the computed props that ermrestjs and chaise can use to find the column mapping, iframe url, etc.
renderInputIframeUrl: Similar to AssetPseudoColumn.filteredRef will allow users to generate a url based on the selected data in the form.
Pending:
[x] documentation
[x] testing? (I've added test cases but they're failing and I need to debug it)
This PR will implement the ermrestjs side of changes for the new
input_iframe
property that we discussed here.Summary of changes:
Reference.generateColumnsList
to call the newSourceObjectWrapper.processInputIframe
which will take care of processinginput_iframe
property of column directives.input_iframe
, I'm removing it from the visible columns list.Reference.update
to properly add the extra mapped column values to the projection list.ReferenceColumn
:isInputIframe
: will signal that the column has theinput_iframe
prop.inputIframeProps
: the computed props that ermrestjs and chaise can use to find the column mapping, iframe url, etc.renderInputIframeUrl
: Similar toAssetPseudoColumn.filteredRef
will allow users to generate a url based on the selected data in the form.Pending: