-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
slightly updated demo app
- Loading branch information
1 parent
5824a39
commit 5173e80
Showing
9 changed files
with
205 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...s/src/main/java/org/vaadin/miki/superfields/text/CanReceiveSelectionEventsFromClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
superfields/src/main/resources/META-INF/resources/frontend/super-date-picker.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import {DatePickerElement} from '@vaadin/vaadin-date-picker/src/vaadin-date-picker.js'; | ||
import {DatePatternMixin} from "./date-pattern-mixin"; | ||
import {TextSelectionMixin} from "./text-selection-mixin"; | ||
|
||
class SuperDatePicker extends DatePatternMixin.to(DatePickerElement) { | ||
class SuperDatePicker extends TextSelectionMixin.to(DatePatternMixin.to(DatePickerElement)) { | ||
|
||
static get is() {return 'super-date-picker'} | ||
|
||
setCallingServer(callingServer) { | ||
console.log('SDP: configuring text selection listeners; callingServer flag is '+callingServer); | ||
this.listenToEvents(this.shadowRoot.querySelector('vaadin-text-field').inputElement, this, callingServer); | ||
} | ||
|
||
} | ||
|
||
customElements.define(SuperDatePicker.is, SuperDatePicker); |
Oops, something went wrong.