-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Add 2022 year in review blog post #1415
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
Conversation
|
TODO @darrenburns : Link to rich-pixels - mentioned library but not linked to it or said name of it. |
| @@ -0,0 +1,171 @@ | |||
| --- | |||
| draft: true | |||
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.
Have left this as a draft for now.
| Textual forgoes the z-index concept from browser CSS and instead uses a “named layer” system. Using the `layers` property you can defined an ordered list of named layers, and using the `layer` property, you can assign a descendant widget to one of those layers. | ||
|
|
||
| By creating a new layer above all others and assigning a widget to that layer, we can ensure that widget is painted above everything else. | ||
|
|
||
| In order to determine where to place the dropdown, we can track the current value in the dropdown by `watch`ing the reactive input “value” inside the Input widget. This method will be called every time the `value` of the Input changes, and we can use this hook to amend the position of our dropdown position to accommodate for the length of the input value. |
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.
I feel this part might be a bit jarring - I randomly start going into a bit too much implementation detail. Maybe I should talk a bit more about Shira and the functionality of the autocomplete library at a high level instead.
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.
Think I'll be publishing on Sunday. I think this is great, but feel free to PR edits before then if you like.
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.
@willmcgugan Should I set draft: false now or will you do it?
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.
I'll do it.
Uh oh!
There was an error while loading. Please reload this page.