mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +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) {
|
setCallback(callback) {
|
||||||
this.callback = callback;
|
this.callback = callback;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
setLink(link) {
|
setLink(link) {
|
||||||
this.link = link;
|
this.link = link;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
setIcon(className) {
|
setIcon(className) {
|
||||||
|
Loading…
Reference in New Issue
Block a user