mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Modify setters in MenuOption to support chaining
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
0d63ce9a3a
commit
4c962943b2
@ -69,10 +69,12 @@ class MenuOption {
|
||||
|
||||
setCallback(callback) {
|
||||
this.callback = callback;
|
||||
return this;
|
||||
}
|
||||
|
||||
setLink(link) {
|
||||
this.link = link;
|
||||
return this;
|
||||
}
|
||||
|
||||
setIcon(className) {
|
||||
|
Loading…
Reference in New Issue
Block a user