📜  jQWidgets jqxPopover showCloseButton 属性

📅  最后修改于: 2022-05-13 01:55:54.895000             🧑  作者: Mango

jQWidgets jqxPopover showCloseButton 属性

jQWidgets是一个 JavaScript 框架,用于为 PC 和移动设备制作基于 Web 的应用程序。它是一个非常强大、经过优化、独立于平台且得到广泛支持的框架。 jqxPopover是内容的一个小覆盖层,用于在用户单击它时显示任何元素的辅助信息。

showCloseButton属性用于设置或获取是否显示指定jqxPopover小部件的关闭按钮。

句法:

  • 设置showCloseButton属性:

    $('#jqxPopover').jqxPopover({showCloseButton: true});

  • 获取showCloseButton属性:

    var arrowOffsetValue = 
        $('#jqxPopover').jqxPopover('showCloseButton');

链接文件:从给定链接下载 jQWidgets。在 HTML 文件中,找到下载文件夹中的脚本文件。

示例:下面的示例说明了 jQWidgets jqxPopover showCloseButton属性。在下面的示例中, showCloseButton属性的值已设置为true

HTML


  

    
    
    
    
    
    

  

    
        

GeeksforGeeks

        

jQWidgets jqxPopover showCloseButton Property

        
            
                GeeksforGeeks             
        
                          
             


输出:

参考: https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxpopover/jquery-popover-api.htm?search=