src/ui/grid-view-manager/dialogs/save-view-as-dialog/save-view-as-dialog.component.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | smart-save-view-as-dialog |
| styleUrls | ./save-view-as-dialog.component.css |
| templateUrl | ./save-view-as-dialog.component.html |
Properties |
Accessors |
| selectedGroup |
Type : UserGroupOption
|
Default value : this.currentUserOption
|
|
The currently selected group option. Empty value means "Current User". |
| viewName | ||||||
getviewName()
|
||||||
|
The name entered by the user for the new view.
Returns :
string
|
||||||
setviewName(value: string)
|
||||||
|
Sets the view name and syncs the OK button state.
Parameters :
Returns :
void
|
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************
--------------------------------------------------------------------------
File : save-view-as-dialog.component.html
Purpose : Template for the Save View As dialog.
Author(s) : Oana Sucigan
Created : Apr 29, 2026
--------------------------------------------------------------------------
-->
<div class="p-3">
<div class="mb-2">
<label class="d-block mb-1" for="viewNameInput">View Name <span class="text-danger">*</span></label>
<input
id="viewNameInput"
kendoTextBox
class="w-100"
[(ngModel)]="viewName"
name="viewName"
required
#viewNameModel="ngModel"
placeholder="Enter view name"
autofocus
[class.k-invalid]="viewNameModel.invalid && viewNameModel.touched"
/>
@if (viewNameModel.invalid && viewNameModel.touched) {
<div class="text-danger small mt-1">View Name is required.</div>
}
</div>
<div class="mb-2">
<label class="d-block mb-1" for="saveScopeDropdown">Save for (user or group)</label>
<kendo-dropdownlist
id="saveScopeDropdown"
class="w-100"
[data]="groupOptions()"
[disabled]="!canSaveOnGroups()"
[valuePrimitive]="false"
[popupSettings]="{
appendTo: 'root',
popupClass: 'smart-grid-view-manager-save-scope-popup'
}"
textField="display"
valueField="value"
[(ngModel)]="selectedGroup"
></kendo-dropdownlist>
</div>
</div>
./save-view-as-dialog.component.css
/**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************/
/*-------------------------------------------------------------------------
File : save-view-as-dialog.component.css
Purpose : Styles for the Save View As dialog.
Author(s) : Oana Sucigan
Created : Apr 29, 2026
--------------------------------------------------------------------------*/
::ng-deep kendo-popup.k-animation-container:has(.smart-grid-view-manager-save-scope-popup),
::ng-deep .smart-grid-view-manager-save-scope-popup.k-popup {
z-index: 100001 !important;
}