You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Unbind event listener(s) from the specified viewer event.
672
-
* @parameventName Specify the event.
673
-
* @paramcallback Specify the listener to remove
674
-
*/
675
-
off(eventName:string, callback?: () =>void):void;
676
-
/**
677
-
* Whether to allow keyboard control. Default: true.
678
-
*/
679
-
allowKeyboardControl:boolean;
680
-
/**
681
-
* Whether to allow page dragging to reorder the pages.
682
-
* Default: true.
683
-
*/
684
-
allowPageDragging:boolean;
685
-
/**
686
-
* Whether to allow resizing of the thumbnail viewer.
687
-
* Default: false.
688
-
*/
689
-
allowResizing:boolean;
690
-
/**
691
-
* Set or return the CSS rule for the background of the thumbnail viewer.
692
-
* Default: "rgb(255, 255, 255)".
693
-
*/
694
-
background:string;
695
-
/**
696
-
* Set or return the CSS rule for the border of the thumbnail viewer.
697
-
* Default: "".
698
-
*/
699
-
border:string;
700
-
/**
701
-
* Set or return the CSS rule for the background of the page the mouse hovers over in the thumbnail viewer.
702
-
* Default: "rgb(239, 246, 253)".
703
-
*/
704
-
hoverPageBackground:string;
705
-
/**
706
-
* Set or return the CSS rule for the border of the page the mouse hovers over in the thumbnail viewer.
707
-
* Default: "1px solid rgb(238, 238, 238)".
708
-
*/
709
-
hoverPageBorder:string;
710
-
/**
711
-
* Set or return the location of the thumbnail viewer. Allowed values are "left", "right", "top", "bottom".
712
-
* Default: "left".
713
-
*/
714
-
location:string;
715
-
/**
716
-
* Set or return the CSS rule for the background of a normal page in the thumbnail viewer.
717
-
* Default: "transparent".
718
-
*/
719
-
pageBackground:string;
720
-
/**
721
-
* Set or return the CSS rule for the border of a normal page in the thumbnail viewer.
722
-
* Default: "1px solid rgb(238, 238, 238)".
723
-
*/
724
-
pageBorder:string;
725
-
/**
726
-
* Set or return the margin between two adjacent images and the margin between an image and the border of the thumbnail viewer. The value can either be in pixels or percentage.
727
-
* Default: 10.
728
-
*/
729
-
pageMargin:number|string;
730
-
/**
731
-
* Set or return the CSS rule for the background of the placeholder which appears when you drag page(s) to reorder them in the thumbnail viewer.
732
-
* Default: "rgb(251, 236, 136)".
733
-
*/
734
-
placeholderBackground:string;
735
-
/**
736
-
* Set or return whether the pages are arranged vertically or horizontally.
737
-
* Default: "vertical". Allowed values are "vertical" and "horizontal".
738
-
*/
739
-
scrollDirection:string;
740
-
/**
741
-
* Set or return the CSS rule for the background of the selected page(s) in the thumbnail viewer.
742
-
* Default: "rgb(199, 222, 252)".
743
-
*/
744
-
selectedPageBackground:string;
745
-
/**
746
-
* Set or return the CSS rule for the border of the selected page(s) in the thumbnail viewer.
747
-
* Default: "1px solid rgb(125,162,206)".
748
-
*/
749
-
selectedPageBorder:string;
750
-
/**
751
-
* Set or return whether page numbers are shown.
752
-
* Default: false.
753
-
*/
754
-
showPageNumber:boolean;
755
-
/**
756
-
* Set or return the size of the thumbnail viewer. The value can either be in pixels or percentage (based on the width or height of the entire viewer).
757
-
* Default: "30%".
758
-
*/
759
-
size:number|string;
760
-
/**
761
-
* Set whether to select the index in the upper left corner of the viewer when scrolling.
762
-
* Default: false.
763
-
*/
764
-
autoChangeIndex:boolean;
765
-
/**
766
-
* Show checkbox on image(s).
767
-
*/
768
-
showCheckbox:boolean;
769
-
};
770
-
interfaceThumbnailViewerEvent {
771
-
// The index of the current page.
772
-
index:number;
773
-
// The x-coordinate of the browser page.
774
-
pageX:number;
775
-
// The y-coordinate of the browser page.
776
-
pageY:number;
777
-
};
778
-
interfaceViewMode {
779
-
/**
780
-
* Specify the number of images per row.
781
-
*/
782
-
columns:number;
783
-
/**
784
-
* Specify the number of images per column.
785
-
*/
786
-
rows:number;
787
-
/**
788
-
* Set or return whether the pages are arranged vertically or horizontally.
789
-
* Default: "vertical". Allowed values are "vertical" and "horizontal".
790
-
*/
791
-
scrollDirection:string;
792
-
}
793
-
```
794
629
630
+
**Parameters**
631
+
632
+
`thumbnailViewerSettings`: Configure the ThumbnailViewer object
0 commit comments