
META-INF.dirigible.template-view.configs.view.js.template Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2025 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = { // This must always be called 'viewData'
id: '{{viewId}}', // Unique view ID
label: '{{viewName}}', // View label
region: 'center', // The layout region in which this view will be shown - 'left', 'right', 'center' and 'bottom'.
path: '/services/web/{{projectName}}/{{fileName}}.html', // Link to the main html file
lazyLoad: true, // When set to true, the view will load only when it becomes visible to the user.
autoFocusTab: true, // If true, the view will automatically send a focus request to the layout to focus its tab. Center and bottom views should have this enabled.
};
// This config is used by both the front-end and the back-end, therefore we need to have this:
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy