We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What i did one of my examples when i was trying which is best part to set ID on child element was to inherit a part from parent element
id=(concat "date-picker-" elementId) {{input type="text" class=mdClass name=name value=dateText key-up="keyUp" required=required disabled=disabled focus-out="focusOut" id=(concat "date-picker-input-" elementId) autocomplete="off"}}
id=(concat "date-picker-" elementId)
{{input type="text" class=mdClass name=name value=dateText key-up="keyUp" required=required disabled=disabled focus-out="focusOut" id=(concat "date-picker-input-" elementId) autocomplete="off"}}
Then in component.js access directly to component with ID
inputID: null,
function changes :
didInsertElement() { this._super(...arguments); let self = this; let elementID = "#date-picker-"+self.elementId; set(self, 'inputID',elementID); jquery(elementID).on('contextmenu', function() { return false; }); jquery(elementID).on('invalid', function(e) { e.preventDefault(); self.set('isDirty', true); });}
downArrowClick() { this.$(get(this,'elementID')).focusin(); }
I will try to make pull-request to send directly what i mean.
Thank you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What i did one of my examples when i was trying which is best part to set ID on child element was to inherit a part from parent element
id=(concat "date-picker-" elementId)
{{input type="text" class=mdClass name=name value=dateText key-up="keyUp" required=required disabled=disabled focus-out="focusOut" id=(concat "date-picker-input-" elementId) autocomplete="off"}}
Then in component.js access directly to component with ID
inputID: null,
function changes :
didInsertElement() { this._super(...arguments); let self = this; let elementID = "#date-picker-"+self.elementId; set(self, 'inputID',elementID); jquery(elementID).on('contextmenu', function() { return false; }); jquery(elementID).on('invalid', function(e) { e.preventDefault(); self.set('isDirty', true); });}
downArrowClick() { this.$(get(this,'elementID')).focusin(); }
I will try to make pull-request to send directly what i mean.
Thank you.
The text was updated successfully, but these errors were encountered: