Skip to content
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

Add a size vmodel for the resizable section #1459

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

pleek91
Copy link
Collaborator

@pleek91 pleek91 commented Oct 2, 2024

Description

Adds an optional size v-model that can be used to set the initial size of the layout's aside when mounted. It can also be used as a v-model. The component will still keep track of the current size internally without the size prop.

Note:
The size prop is respected over the --p-layout-resizable-aside-size custom property which sets a default value for if the size prop is missing.

@pleek91 pleek91 requested a review from a team as a code owner October 2, 2024 21:16
Copy link

netlify bot commented Oct 2, 2024

Deploy Preview for prefect-design ready!

Name Link
🔨 Latest commit f1384f9
🔍 Latest deploy log https://app.netlify.com/sites/prefect-design/deploys/66fdb83ffa05940008a1a879
😎 Deploy Preview https://deploy-preview-1459--prefect-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@znicholasbrown
Copy link
Contributor

Nice solution 👌

@pleek91 pleek91 merged commit 4618263 into main Oct 3, 2024
6 checks passed
@pleek91 pleek91 deleted the size-v-model-on-layout-resizable branch October 3, 2024 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants