Modify setters in MenuOption to support chaining

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-06-04 14:54:53 +05:30
parent 0d63ce9a3a
commit 4c962943b2

View file

@ -69,10 +69,12 @@ class MenuOption {
setCallback(callback) {
this.callback = callback;
return this;
}
setLink(link) {
this.link = link;
return this;
}
setIcon(className) {