-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add editor.onPropertyAfterRender event: #266
- Loading branch information
1 parent
f32064e
commit 117bcf3
Showing
3 changed files
with
67 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
<script type="text/html" id="objecteditor"> | ||
<table class="table svd_table-nowrap"> | ||
<tbody data-bind="foreach: koProperties"> | ||
<tr data-bind="click: $parent.changeActiveProperty($data), css: {'active': $parent.koActiveProperty() == $data}"> | ||
<td width="50%"> | ||
<span data-bind="text: displayName, attr: {title: title || displayName}"></span> | ||
</td> | ||
<td width="50%"> | ||
<span data-bind="css: {'form-control': !editor.alwaysShowEditor && (koText() === '' || koText() === null) }, text: koText, visible: !koIsShowEditor(), attr: {title: koText}" | ||
style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden"></span> | ||
<div data-bind="visible: koIsShowEditor()"> | ||
<!-- ko template: { name: 'propertyeditor-' + editorType, data: $data.editor, afterRender: function(elements) { afterRenderHandler($element.parentElement, elements); } } --> | ||
<!-- /ko --> | ||
</div> | ||
</td> | ||
</tr> | ||
<!-- ko template: { name: 'objecteditorproperty', afterRender: $parent.koAfterRender } --> | ||
<!-- /ko --> | ||
</tbody> | ||
</table> | ||
</script> | ||
<script type="text/html" id="objecteditorproperty"> | ||
<tr data-bind="click: $parent.changeActiveProperty($data), css: {'active': $parent.koActiveProperty() == $data}"> | ||
<td width="50%"> | ||
<span data-bind="text: displayName, attr: {title: title || displayName}"></span> | ||
</td> | ||
<td width="50%"> | ||
<span data-bind="css: {'form-control': !editor.alwaysShowEditor && (koText() === '' || koText() === null) }, text: koText, visible: !koIsShowEditor(), attr: {title: koText}" | ||
style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden"></span> | ||
<div data-bind="visible: koIsShowEditor()"> | ||
<!-- ko template: { name: 'propertyeditor-' + editorType, data: $data.editor, afterRender: function(elements) { afterRenderHandler($element.parentElement, elements); } } --> | ||
<!-- /ko --> | ||
</div> | ||
</td> | ||
</tr> | ||
</script> |