Skip to content

Add close button configuration

Compare
Choose a tag to compare
@nechehin nechehin released this 20 Dec 10:49
· 1 commit to master since this release

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();