-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
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
will there be glimmer support for this project? #23
Comments
Yes. I have been following this issues related to glimmer components in ember. When they get further along, we will consider adding support. |
and is there something similar to onChange found in ember paper? |
@AhemedHan Can you please be more specific as to what you are trying to accomplish? If you could provide an example or let me know what component you are trying to use, I could then be of more assistance. |
we are trying to add text inputs to forms. the first challenge is that the input text fields, selects and icon buttons are too large for our design concepts and trying to size it down makes all the elements go crazy...especially the ripple. the other thing is im not able to bind a variable with the elements. adding value=this.something doesn't bring the input into something. and i was also hoping there would be an onchange function attribute which would run a function when the bound variable goes through any change. like to constantly check whether two password fields match or not. maybe im doing it wrong. i went through your codes and could not find any example regarding this too. thanks in advance |
@AhemedHan To make the size of the input fields smaller, try adding
Let me know if this makes the input fields smaller. In the next version, {{mdc-textfield style="outlined" class="mdc-text-field--dense" }} You write:
I am not sure what you mean by this statement. For example:
this will store the value in In your password example, I have done this many times, but you do not want to do an
I would have the following controller code in import Controller from `@ember/controller`;
import { computed } from '@ember/object';
import { not } from '@ember/object/computed';
export default Controller.extend ({
invalid: not ('valid'),
unconfirmed: computed ('{password,confirmPassword}', function () {
const { password, confirmPassword } = this.getProperties (['password', 'confirmPassword']);
return password !== confirmPassword;
}),
disabled: or ('{invalid,unconfirmed}'), // can add other reasons to disable button
// You can also use events
actions: {
submit () {
// handle form submission when permitted (i.e., the submit button is no longer disabled)
}
}
}); Let me know if this approach helps you with your problem. |
thanks man. the dense thing helped. and also since im working on ember octane i think instead of computed i should be looking into tracking. but anyway thanks for that too |
Great. I'm going to close this issue then. |
No description provided.
The text was updated successfully, but these errors were encountered: