Comments (3)
The main issue here is what is initial state? If user moved the gutter and you update your size property - does it mean the initial state changed? If for example a new size came from outside without user interaction - does it mean the initial state changed? I am not sure this is a feature that can be integrated as it sounds very use case specific. More like something the component using the split should handle by changing the size to the so called initial size when appropriate.
@beeman your thoughts on the matter?
I think it's not something we should add to the main library, it seems to be relatively simple to implement, and doing it your own way allows you to pick where you want to store this (state/local storage/database, etc).
As inspiration, you can look at this example and tweak it so you keep the 'initial' state and allow the user to restore that.
Hope that helps.
from angular-split.
Hey there @MerlijnKerklaan - feel free to create a pull request that includes tests and I will look at merging it.
from angular-split.
The main issue here is what is initial state? If user moved the gutter and you update your size property - does it mean the initial state changed? If for example a new size came from outside without user interaction - does it mean the initial state changed?
I am not sure this is a feature that can be integrated as it sounds very use case specific. More like something the component using the split should handle by changing the size to the so called initial size when appropriate.
@beeman your thoughts on the matter?
from angular-split.
Related Issues (20)
- Having a button (or another html element) on the gutter itself HOT 1
- Cypress visual tests on chrome
- Add aria compliant label for gutter HOT 2
- Support for angular 16? HOT 2
- The ARIA role attribute value for the gutter should be separator, not slider
- Angular-split doesn't work on mobile Ios-Android from Version 16.0.0 (Solved with this workaround) HOT 1
- Buttons added either side of gutter for maximizing panes HOT 1
- aria-valuenow set incorrectly when only the second pane is sized HOT 2
- Incorrect Tabbing Order Due to Gutter Placement in Split Areas HOT 1
- Update to v17 HOT 1
- angular-split has a new maintainer! (was: Sunsetting angular-split) HOT 4
- Integrating 'All Contributors' Bot for Enhanced Contributor Recognition
- Adding a Code of Conduct for Community Standards
- Implementing a Simple Contribution Guide
- Switching from TSLint to ESLint HOT 1
- Optimizing CI Pipeline: Comprehensive Build, Lint, Test, and Automated Release Workflow
- Adding Commitlint for Efficient and Straightforward Commit Strategy
- Update README to Include Detailed Installation Steps and Usage Instructions
- Transition to Angular Standalone Components in Favor of Angular Modules HOT 3
- Proposal for Migration to Angular CLI Multi-Project Workspace
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-split.