• <menu id="w2i4a"></menu>
  • logo DevExtreme 中文文檔

    getInstance(element)


    getInstance(element)

    獲取使用其DOM節(jié)點(diǎn)找到的UI組件的實(shí)例。

    1. Parameters:
    2. element: Element | jQuery
    3. UI組件的容器。
    1. Return Value:Object
    2. UI組件的實(shí)例。

    getInstance是UI組件類支持的靜態(tài)方法,下面的代碼演示了如何獲取ID為myAccordion的元素中的Accordion實(shí)例:

    // Modular approach
    import Accordion from "devextreme/ui/accordion";
    ...
    let element = document.getElementById("myAccordion");
    let instance = Accordion.getInstance(element) as Accordion;
    
    // Non-modular approach
    let element = document.getElementById("myAccordion");
    let instance = DevExpress.ui.dxAccordion.getInstance(element);
    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();