https://github.com/zowe/zlux-widgets
https://github.com/zowe/zlux-widgets
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zowe/zlux-widgets
- Owner: zowe
- License: epl-2.0
- Created: 2018-08-13T15:43:21.000Z (almost 8 years ago)
- Default Branch: v1.x/master
- Last Pushed: 2024-08-06T23:32:03.000Z (almost 2 years ago)
- Last Synced: 2024-08-07T02:42:40.580Z (almost 2 years ago)
- Language: JavaScript
- Size: 2.51 MB
- Stars: 0
- Watchers: 5
- Forks: 11
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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 https://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
Copyright Contributors to the Zowe Project.
# zLUX widgets library
Adding the library to your package:
`npm install "git+ssh://git@github.com:zowe/zlux-widgets.git" --save`
Popup Window
Imports:
Module: `import { ZluxPopupWindowModule } from '@zlux/widgets'`
Component: `import { ZluxPopupWindowComponent } from '@zlux/widgets'` template: ``
Template parameters:
- header: string
- dark: boolean - if true - apply dark style to header
- width: string - force write content area width by this value
- onCloseWindow: EventEmitter
Popup Window Button Area
Imports:
Module: `import { ZluxPopupWindowModule } from '@zlux/widgets'`
Component: `import { ZluxPopupWindowButtonAreaComponent } from '@zlux/widgets'` template: ``
The buttons are rendered in the place corresponding to the style:
- "popup-window-button-left"
- "popup-window-button-center"
- without style for right aligned
Button
Imports:
Module: `import { ZluxButtonModule } from '@zlux/widgets'`
Component: `import { ZluxButtonComponent } from '@zlux/widgets'` template: ``
Template parameters:
- buttonType: string - attribute "type" of buttons tag
- label: string
- disabled: boolean
- style: any
- styleClass: string - attribute "class" of buttons tag
- callToAction: boolean - if true - apply "Call To Action" style to button
- onClick: EventEmitter
Example:
```
There is main content
```
# For Maintainers
Because this library is used as an npm package, you must remember to commit changes to index.js and index.js.map, and any other files that changed as the result of building the application (e.g. **/*.d.ts)
Also, remember to retain the copyright headers in those build products (they currently need to be restored "by hand")
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 https://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
Copyright Contributors to the Zowe Project.