Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a-schild/nativeselectext7
Vaadin 8 addon which allows disabled items
https://github.com/a-schild/nativeselectext7
java vaadin
Last synced: 14 days ago
JSON representation
Vaadin 8 addon which allows disabled items
- Host: GitHub
- URL: https://github.com/a-schild/nativeselectext7
- Owner: a-schild
- License: apache-2.0
- Created: 2018-02-12T13:06:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T15:25:52.000Z (over 6 years ago)
- Last Synced: 2024-10-07T23:40:57.019Z (about 1 month ago)
- Topics: java, vaadin
- Language: Java
- Size: 43.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NativeSelectExt7 Add-on for Vaadin 7 and 8
NativeSelectExt7 is a UI component add-on for Vaadin 7+8.
It allows disabled entris in the NativeSelect component.In vaadin 8 the component is based on the com.vaadin.v7.ui.NativeSelect version,
so you will have to include the vaadin 7 compatibility layers in your v8 project.You can modify the style of the disabled items, by providing your own css
rules. Make sure to test the css rules, since not all browser allow all rules
for the option drop down entries.Current rules are:
select option:disabled {
background-color: lightgray;
color: black;
}## Online demo
Try the add-on demo at
## Download release
Official releases of this add-on are available at Vaadin Directory. For Maven instructions, download and reviews, go to http://vaadin.com/addon/NativeSelectExt7
## Building and running demo
git clone
mvn clean install
cd demo
mvn jetty:runTo see the demo, navigate to http://localhost:8080/
## Development with Eclipse IDE
For further development of this add-on, the following tool-chain is recommended:
- Eclipse IDE
- m2e wtp plug-in (install it from Eclipse Marketplace)
- Vaadin Eclipse plug-in (install it from Eclipse Marketplace)
- JRebel Eclipse plug-in (install it from Eclipse Marketplace)
- Chrome browser### Importing project
Choose File > Import... > Existing Maven Projects
Note that Eclipse may give "Plugin execution not covered by lifecycle configuration" errors for pom.xml. Use "Permanently mark goal resources in pom.xml as ignored in Eclipse build" quick-fix to mark these errors as permanently ignored in your project. Do not worry, the project still works fine.
### Debugging server-side
If you have not already compiled the widgetset, do it now by running vaadin:install Maven target for NativeSelectExt7-root project.
If you have a JRebel license, it makes on the fly code changes faster. Just add JRebel nature to your NativeSelectExt7-demo project by clicking project with right mouse button and choosing JRebel > Add JRebel Nature
To debug project and make code modifications on the fly in the server-side, right-click the NativeSelectExt7-demo project and choose Debug As > Debug on Server. Navigate to http://localhost:8080/NativeSelectExt7-demo/ to see the application.
### Debugging client-side
Debugging client side code in the NativeSelectExt7-demo project:
- run "mvn vaadin:run-codeserver" on a separate console while the application is running
- activate Super Dev Mode in the debug window of the application or by adding ?superdevmode to the URL
- You can access Java-sources and set breakpoints inside Chrome if you enable source maps from inspector settings.
## Release notes### Version 1.7.1
- Version/branch for vaadin 7### Version 1.1
- Added all constructors of base class (Vaadin 8 release)### Version 1.0
- Initital release (Vaadin 8 release)## Issue tracking
The issues for this add-on are tracked on its github.com page. All bug reports and feature requests are appreciated.
## Contributions
Contributions are welcome, but there are no guarantees that they are accepted as such. Process for contributing is the following:
- Fork this project
- Create an issue to this project about the contribution (bug or feature) if there is no such issue about it already. Try to keep the scope minimal.
- Develop and test the fix or functionality carefully. Only include minimum amount of code needed to fix the issue.
- Refer to the fixed issue in commit
- Send a pull request for the original project
- Comment on the original issue that you have implemented a fix for it## License & Author
Add-on is distributed under Apache License 2.0. For license terms, see LICENSE.txt.
NativeSelectExt7 is written by
# Developer Guide
## Getting started
Here is a simple example on how to try out the add-on component:
component.setItemDisabled("Item 4", status);
For a more comprehensive example, see src/test/java/org/vaadin/template/demo/DemoUI.java
## Features
- Allows to disable items in the NativeSelect drop down