widgets module
Custom widgets for the ui
用户界面的自定义小部件
To use it:
- var widgets = require('users/fitoprincipe/geetools:widgets')
-
ClosePanel(options)
A Panel with an X button for "closing" it. To make it work you must add it to another Panel or Map with its method addTo or insertTo, otherwise it will not be able to close it. Parameters are similar to ui.Panel. The difference is that it has a parameter inner_style to set the style for the inner Panel, like backgroundColor or border. To close the panel using another widget it has a close method.
Options:
style: