Modify setters in MenuOption to support chaining
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
0d63ce9a3a
commit
4c962943b2
1 changed files with 2 additions and 0 deletions
|
@ -69,10 +69,12 @@ class MenuOption {
|
|||
|
||||
setCallback(callback) {
|
||||
this.callback = callback;
|
||||
return this;
|
||||
}
|
||||
|
||||
setLink(link) {
|
||||
this.link = link;
|
||||
return this;
|
||||
}
|
||||
|
||||
setIcon(className) {
|
||||
|
|
Reference in a new issue