forked from mystiq/hydrogen-web
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) {
|
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 a new issue