Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Common methods per widget #5

Open
mjlbach opened this issue Feb 5, 2021 · 3 comments
Open

Common methods per widget #5

mjlbach opened this issue Feb 5, 2021 · 3 comments

Comments

@mjlbach
Copy link
Collaborator

mjlbach commented Feb 5, 2021

It came up on IRC that we should have a common interface for widgets. This is mostly a placeholder for discussion.

-[ ] widget.close() -> Should we also enable a delayed invocation of this as a widget method like I did in notification.lua?
-[ ] widget.id() -> @smolck do we need this for vim.ui.layout?

@smolck
Copy link
Collaborator

smolck commented Feb 5, 2021

-[ ] widget.id() -> @smolck do we need this for vim.ui.layout?

I don't think so, but so I understand, what would be the purpose of this in general?

@mjlbach
Copy link
Collaborator Author

mjlbach commented Feb 5, 2021

The purpose of the metatable/common method guidelines, or the purpose of having an "ids" method?

@smolck
Copy link
Collaborator

smolck commented Feb 5, 2021

The purpose of the metatable/common method guidelines, or the purpose of having an "ids" method?

I meant the purpose of the id() method (which I guess ui.layout could build off of if it ends up being something we want/need in ui.layout).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants