Add close button configuration
Close button config
use next methods for close button configuration:
Position
- bottomModeCloseButtonPosition({Object} position)
- fullscreenModeCloseButtonPosition({Object} position)
Size
- bottomModeCloseButtonSize({String} size)
- fullscreenModeCloseButtonSize({String} size)
Defaults
catfish.bottomModeCloseButtonPosition({ top: '-15px', left: '5px' });
catfish.bottomModeCloseButtonSize('25px');
catfish.fullscreenModeCloseButtonPosition({ top: '5px', left: '5px' });
catfish.fullscreenModeCloseButtonSize('25px');
Example
Show close button on right side for bottom mode:
catfish
.addBottomModeSlot('/your_slot_name', [320, 100])
.bottomModeCloseButtonPosition({ top: '-15px', right: '5px' })
.render();