Skip to content

bachlge/Ui5-Addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UI5 Vaadin-Addon

Java classes wrapping UI5 webcomponents

Usage

add dependency in your pom.xml:

<dependency>
   <groupId>com.gork</groupId>
   <artifactId>ui5-addon</artifactId>
   <version>1.0.0</version>
</dependency>

additionally add in the using application the dependencies like (don't know why this is necessary!)

1. open console
2. go to project root dir, eg:
cd /Users/georg/Develop/vaadin/flow/ui5-addon-demo
cd /Users/georg/Develop/vaadin/flow/fam
3. run scripts
npm install @ui5/webcomponents
npm install @ui5/webcomponents-fiori

Demo Application

see ui5-addon-demo how the components are used.

Components and their features

Component | HasComponents | Binding | Event |
Ui5Avatar | no | no | |
| Ui5AvatarGroup | yes | no | |
| Ui5Badge | yes | no | |
| Ui5Bar | yes | no | |
| Ui5Button | no | no | click |
| Ui5Input | no | yes:String | change |
| Ui5Label | no | no | click |
| Ui5RadioButton | no | no | select |
| Ui5AvatarGroup | yes | no | |
| Ui5RatingIndicator | no | yes: Integer | change |
| Ui5Timeline | no | no | |
| Ui5TimelineItem | no | no | item-name-click |
| Ui5ToggleButton | no | yes: Boolean | click |

Binding ... means that the component is extending AbstractSinglePropertyField HasComponents ... Components can be added Event ... Listeners can be attached for listed event(s)

For a full list, visit the Playground or have a look on the Sources in Github

Events that have been successfully tested in the demo application

  • Ui5Checkbox change (returns one boolean value)
  • Ui5RadioButton change (returns no value)
  • Ui5Slider change (returns one float value)
  • Ui5Switch change (returns one boolean value)
  • Ui5ToggleButton change (returns one boolean value)

Events that need furter investigation

  • Ui5Breadcrumbs item-click (complicated hadling, should it be added on Item level?)
  • Ui5Button click (component event fires, npe in demo application)
  • Ui5RangeSlider change (fires twice, should return two values, returns none)
  • Ui5ToggleButton change (always is false, what is really returned in @EventData("element.pressed")?)

Known bugs & limitations

  • bug: Ui5BusyIndicator: does not show
  • bug: Ui5Card: setIcon() should replace the default icon but adds instead
  • bug: Ui5Badge: should be possible to add icon/icon only
  • general: no listeners yet implemented on buttons/menus
  • general: data binding not yet implemented

About

Vaadin Addon wrapping UI5 Webcomponents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages