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

I think it should be a controller. #3

Open
Dorbmon opened this issue Apr 24, 2020 · 6 comments
Open

I think it should be a controller. #3

Dorbmon opened this issue Apr 24, 2020 · 6 comments

Comments

@Dorbmon
Copy link
Contributor

Dorbmon commented Apr 24, 2020

For more detailed controll,I think a controller should be built.

@eric-taix
Copy link
Owner

eric-taix commented Apr 24, 2020

I thought about adding a controller. What do you have in mind about the controller could control (except to control the page which can already be done by changing the current page index)?

@Dorbmon
Copy link
Contributor Author

Dorbmon commented Apr 24, 2020

I thought about adding a controller. What do you have in mind about the controller could control (except to control the page which can already be done by changing the current page index)?

You had just told what I think it should have haha.

@Dorbmon
Copy link
Contributor Author

Dorbmon commented Apr 25, 2020

And I think more events shold be exposed such as double click and long tap.

@eric-taix
Copy link
Owner

@Dorbmon Can you provide me use cases for double click and long tap? This is a bottom navigation bar and I can't find any real use cases...

@Dorbmon
Copy link
Contributor Author

Dorbmon commented Oct 16, 2020

@Dorbmon Can you provide me use cases for double click and long tap? This is a bottom navigation bar and I can't find any real use cases...

Actually double click can be used to refresh the page.It is widely applied in many apps.
Long click can be used to call out a menu.

@CodingAleCR
Copy link

Another good idea for having a controller is selecting an item programmatically, like changing the selected item when something is done (for example, changing tabs to a list of items after adding a new item to said list).

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

No branches or pull requests

3 participants