Comments (1)
Hi, sorry for taking so long to answer this.
Perhaps there is a misunderstanding related to setAllowedPattern()
and setValidationPattern()
. The first one lets you to specify a pattern that will control which characters can be entered into the input component. The second one shows a validation error (as a tooltip) if the pattern do not match.
Try with this:
ChipField<String> chferror = new ChipField<>("Kzz");
chferror.setAllowedPattern("[a-zA-Z0-9]+");
chferror.setValidationErrorMessage("Some Error");
chferror.setValidationPattern("[a-zA-Z]+");
In this case we are telling the component to prevent entering something that is not a alphabetical or number character. If a number is entered the error message as a tooltip will be shown.
from chipfieldaddon.
Related Issues (20)
- Component null parameter HOT 8
- setValue is ignored HOT 1
- How to get the chip Object on delete / click HOT 1
- removeSelectedItem doesn't work as expected HOT 1
- Updating the itemLabelGenerator has no effect on chips
- ValueChangeListener not working on deleting chips HOT 4
- Removing a chipfield with values from the layout and adding it again does not show the chips
- Setting readonly still allows deleting chips HOT 11
- Additional items are not returned by findItemByLabel
- Support adding additional items through setValue
- Allow selection by pressing Enter when no newItemHandler is configured.
- Remove bintray repository
- The component looks like editable in read-only mode
- testAdditionalItemWithNoHandler is failing
- Add test on how to get the chip Object on delete
- Add test on item click
- Events are not fired when the value is modified from server side
- testAdditionalItemRemovedListenerFromClient is failing
- Add theme support
- Add integration test for updating itemLabelGenerator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chipfieldaddon.