-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat(design): create DaffOpenableDirective
#2908
base: develop
Are you sure you want to change the base?
Conversation
DaffOpenable
interface
439e580
to
591fb30
Compare
@damienwebdev Need to finalize what the output naming is for the openable directive. Are we sticking to |
591fb30
to
3332f41
Compare
DaffOpenable
interfaceDaffOpenableDirective
3332f41
to
8a7d0b2
Compare
@griest024 we made some updates according to your concerns. lmk what you think. |
hide: () => void; | ||
|
||
/** Sets toggle on the component */ | ||
/** Toggles the component from open to not open */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will also work in reverse from not open to open, correct? The comment should reflect that converse behavior.
/** Whether or not a component implementing the directive is open */ | ||
@Input() @HostBinding('class.daff-open') open = false; | ||
|
||
private _setOpen(v: boolean) { | ||
if(!this.stateless) { | ||
this.open = v; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be mutating this._open
not this.open
. The setter for this.open
contains the opposite check for stateless
so this will never do anything.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Part of: #763
What is the new behavior?
Does this PR introduce a breaking change?
Other information